F.A.Q.
A: How the manifest should look like? (example)
{
"name":"Geoposition Input",
"type":"sensor", - sensor or actor
"zone":{
"name":"Zone name",
"guid":"2c0c171a-a828-4f90-be15-7b1f95c8deb8"
}
"description":"Geoposition Input",
"valueType":"json", - or int, float, string, text, boo, file, binary, timestamp…
"jsonMapping":{ - if valueType is json
"longitude":"float", - key and type
"latitude":"float",
"direction":"float"
},
"file":{ - if valueType is file
"name":"fileName.png",
"type":"image" - image, mp3, text, wav
"size":42563, - bytes
"date":1450774319932 - timestamp
}
}
A: Can I use mosquitto from command lines?
YES
You can use:
mosquitto_sub -h broker -t 'topic' -v to subscribe on certain topic, or:
mosquitto_sub -h broker -t 'topic' -m "Message" to publish on certain topic
You can use:
mosquitto_sub -h broker -t 'topic' -v to subscribe on certain topic, or:
mosquitto_sub -h broker -t 'topic' -m "Message" to publish on certain topic