[r818]: / branches / FeatureBranches / Debuglogging / SparkplugB / Function Blocks / FB_PrimaryHost / FB_PrimaryHost / Publish / PublishSTATE / svnobj  Maximize  Restore  History

Download this file

11 lines (10 with data), 3.0 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
PublishSTATE := FALSE;
_SparkplugB.SetSeq();
_MQTT.EnablePublisher();
WriteDeviceLog( gc_sparkplug.CMP_HOST,
                CmpLog.LogClass.LOG_DEBUG,
                'PrimaryHost STATE published to: %s',
               MessageSize := INT_TO_UDINT( LEN( GC_sparkplug.ONLINE ) ),
               Qos := MQTT.MQTT_QOS.QoS0,
               Retained := TRUE );
_MQTT();