coreMQTT v2.0.0
MQTT 3.1.1 Client Library
MQTT_GetPacketId

Get a packet ID that is valid according to the MQTT 3.1.1 spec.

uint16_t MQTT_GetPacketId( MQTTContext_t * pContext );
uint16_t MQTT_GetPacketId(MQTTContext_t *pContext)
Get a packet ID that is valid according to the MQTT 3.1.1 spec.
Definition: core_mqtt.c:3061
A struct representing an MQTT connection.
Definition: core_mqtt.h:160
Parameters
[in]pContextInitialized MQTT context.
Returns
A non-zero number.