Format of MQTT topics
As we discussed yesterday, it would be very helpful for connection daemon to cloud improve format of MQTT topics into which are messages sent. The important thing is to subscribe to messages from all devices (maybe it currently works?). And second, most important is to publish each message into the topic specified for device. For case when the messages is sending gateway on behalf of device is supported format on this picture:
For better understanding of terminology let`s show how can looks process of registration:
- user create in IoT platform gateway typeid (it can be something like "IQRF gateway" or more specific "IQRF-USB-Gateway" if it has got different. API, for example)
- user create in IoT platform device typeid (for example "IQRF device", if needs it can me specified more in detail again)
- user create gateway with gateway typeid specified above - in this point user get deviceid (resp. gatewayid) and token
- (optional) user can create devices by hand, but it is only optional, becuase when messages will be delivered correctly, iot platform can register this devices automatically
So, most simplified scenarious is:
-
register general gateway type
-
register general device type
-
register gateway
-
and send messages from GW :)
But it can be amazing make some of this properties configurable...
For more see documentation here
@Vojta maybe can note also something