MQTTPublishPublicTable()ΒΆ
Publishes the contents of the public table when called by the CRBasic program.
Syntax
MQTTPublishPublicTable(QoS)
Qos{Integer} - Specifies the MQTT Quality of Service *(QoS) level0= At most once (fire-and-forget)1= At least once2Not supported.
Topic Structure <base topic>/pr/<uid>/public
The output payload will be in GeoJSON format.
CRBasic Example
Scan (1, Sec, 0, 0)
PanelTemp (PTemp, 15000)
Battery (Batt_volt)
' Trigger publish public table
If trigger = True Then
MQTTPublishPublicTable (1) ' QoS 1
trigger = False
EndIf
NextScan