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

◆ mqtt_helper_msg_id_get()

uint16_t mqtt_helper_msg_id_get ( void )

#include <include/net/mqtt_helper.h>

Get a message ID.

Note
Will not return 0 as it is reserved for invalid message IDs, see MQTT specification. Returned values increment by one for each call.
Returns
Message ID, positive non-zero value.