picofuse

Data Fields
net_mqtt_error_t Struct Reference

Payload for a net_mqtt_event_error event. More...

#include <mqtt.h>

Data Fields

net_mqtt_error_kind_t kind
 Coarse category - see net_mqtt_error_kind_t.
 
net_mqtt_error_action_t action
 Which operation - see net_mqtt_error_action_t.
 
uint32_t message_id
 The id net_mqtt_publish()/net_mqtt_subscribe()/ net_mqtt_unsubscribe() returned for the call this error belongs to, if any - 0 if this error isn't tied to a specific one of those calls (a connection-level failure, say). More...
 

Detailed Description

Payload for a net_mqtt_event_error event.

Definition at line 292 of file mqtt.h.

Field Documentation

◆ message_id

uint32_t net_mqtt_error_t::message_id

The id net_mqtt_publish()/net_mqtt_subscribe()/ net_mqtt_unsubscribe() returned for the call this error belongs to, if any - 0 if this error isn't tied to a specific one of those calls (a connection-level failure, say).

All three draw from the same id space (see net_mqtt_publish()'s own doc on next_message_id), so a nonzero value here is unambiguous regardless of which kind of call it came from - 0 is never a real id from any of them.

Definition at line 295 of file mqtt.h.


The documentation for this struct was generated from the following file: