|
|
|
@ -1,16 +1,16 @@
|
|
|
|
|
# cdmf-devicetype-archetype
|
|
|
|
|
|
|
|
|
|
To install this maven archetype
|
|
|
|
|
go to this folder cdmf-devicetype-archetype
|
|
|
|
|
go to this folder `cdmf-devicetype-archetype`
|
|
|
|
|
|
|
|
|
|
mvn clean install
|
|
|
|
|
|
|
|
|
|
To create new project
|
|
|
|
|
go to this folder /wso2iots-1.0.0-SNAPSHOT/samples
|
|
|
|
|
go to this folder `/wso2iots-1.0.0-SNAPSHOT/samples`
|
|
|
|
|
|
|
|
|
|
mvn archetype:generate -DarchetypeCatalog=local
|
|
|
|
|
|
|
|
|
|
Then select the cdmf.devicetype:cdmf-devicetype-archetype as new archetype. Then you need to provide groupId, artifactId,
|
|
|
|
|
Then select the `cdmf.devicetype:cdmf-devicetype-archetype` as new archetype. Then you need to provide groupId, artifactId,
|
|
|
|
|
version, packaging, name of your device type and name for sensor as shown bellow.
|
|
|
|
|
|
|
|
|
|
Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): : 3
|
|
|
|
@ -30,7 +30,12 @@ version, packaging, name of your device type and name for sensor as shown bellow
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
To install sample app into IOTS
|
|
|
|
|
open '`device-deployer.xml` which is located in wso2iots-1.0.0-SNAPSHOT directory
|
|
|
|
|
open `device-deployer.xml` which is located in wso2iots-1.0.0-SNAPSHOT directory
|
|
|
|
|
|
|
|
|
|
Under modules tag add name of sample which you created as module as below
|
|
|
|
|
|
|
|
|
|
<module>samples/safeLocker</module>
|
|
|
|
|
|
|
|
|
|
Under featureArtifacts tag add feature artifact definition as below
|
|
|
|
|
|
|
|
|
|
<featureArtifactDef>
|
|
|
|
@ -44,6 +49,9 @@ To install sample app into IOTS
|
|
|
|
|
<version>1.0.0-SNAPSHOT</version>
|
|
|
|
|
</feature>
|
|
|
|
|
|
|
|
|
|
Finally to deploy sample device type into IoT Server
|
|
|
|
|
|
|
|
|
|
mvn clean install -f device-deployer.xml
|
|
|
|
|
|
|
|
|
|
Note: This command should be executed place where `device-deployer.xml` is located
|
|
|
|
|
|
|
|
|
|