User Manual
Parameters:
on: Whether or not the published message should be 'retained' by the MQTT broker. Sending a message with
the this set to 'false' (0) will clear any previously retained message from the broker.
Returns: Nothing
Subscribe Callbacks
You can also subscribe or unsubcribe to publications on the topic using the following functions:
bool subscribe (messageHandler_t mh)
This function will subscribe to the topic and any changes will be sent to the specified callback handler.
Parameters:
mh: The callback handler where the subscription event should be redirected to.
Returns: 'True' (1) is the subscribe was successful, otherwise 'false' (0).
Subscription callback handlers have the following format:
The default value for 'retain' is false, unless it is modified using this function.
bool subscribe (messageHandler_t mh);
bool unsubscribe (void);
bool subscribed (void);
© Adafruit Industries https://learn.adafruit.com/introducing-the-adafruit-wiced-feather-wifi Page 123 of 202










