Page tree
Skip to end of metadata
Go to start of metadata

In order to report real-time data, Smartenit Ecosystem uses MQTT protocol. This protocol follows the publish/subscribe pattern. In Smartenit  Streaming API all the topics are bound to the account for security and segregation, they also mimic the RESTful approach of the Smartenit API

To avoid loop messages when sending commands or reporting sensor data, the streaming API is defined using 2 prefixes in the topics, in and out. In most cases devices publish their data into the out/ topic and subscribe to the in/ topic to receive control commands. Clients publish control commands to in/ and subscribe to out/ topic to receive device data.

 

  • No labels