nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ mqtt_helper_on_all_events_t

typedef bool(* mqtt_helper_on_all_events_t) (struct mqtt_client *const client, const struct mqtt_evt *const event)

#include <include/net/mqtt_helper.h>

Handler invoked for events that are received from the MQTT stack. This callback handler can be used to filter incoming MQTT events before they are processed by the MQTT helper library.

Parameters
clientPointer to the MQTT client instance.
eventPointer to the MQTT event.
Return values
0if the event is handled by the caller. No further processing of the MQTT event will be carried out by the MQTT helper library.
1if the MQTT helper library should continue to process the event after the handler returns.