This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
sdk:mqtt_simple_status [2018/08/08 13:55] – preisig | sdk:mqtt_simple_status [2018/08/08 13:57] – [Script Summary] preisig | ||
---|---|---|---|
Line 4: | Line 4: | ||
This script reads some defined values from the router via the nb_status() function. For a demo purpose the routers temperature, | This script reads some defined values from the router via the nb_status() function. For a demo purpose the routers temperature, | ||
+ | |||
+ | If you are interessted in other status values, please refer to the API manual and read about the nb_status() function. You can use dump() to get all the fields (ex: GNSS1_LATITUDE) of the struct returned by nb_status. | ||
With default settings the script publishes 10 mqtt messages to a given topic and waits 60 secs between every new status query and message publish. | With default settings the script publishes 10 mqtt messages to a given topic and waits 60 secs between every new status query and message publish. |