callback_mqtt_notif()

Description:

Callback procedure, called when the subscriber receives a message from the MQTT server for the topic this subscriber is subscribed to. Procedure body has to be created elsewhere in the project (externally with respect to the library).

Syntax:

sub callback_mqtt_notif(byref topic as string, byref data as string)

Returns:

---

See Also:

Step-by-step Usage Instructions


Parameter

Description

topic

The topic.

data

The data.

Details

To receive any notifications, the device must subscribe to desired topics using mqtt_sub().