Skip to content

Clients mqttpublish

Uffe Björklund edited this page Jun 16, 2015 · 3 revisions

To publish a message to MQTT you can use the MqttPublish extension method that is located in the XSockets.Protocol.Mqtt.Modules.Extensions namespace

Note that only QoS 0 and 1 is supported in current version

To add a publish to MQTT from our Sensor controller, and the line

this.MqttPublish(model,"irtempchange");

You would also need a QoS 0 subscription in the MQTT.fx client

Clone this wiki locally