coreMQTT  v1.1.2
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 );
Parameters
[in]pContextInitialized MQTT context.
Returns
A non-zero number.
MQTT_GetPacketId
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:2272
MQTTContext_t
A struct representing an MQTT connection.
Definition: core_mqtt.h:169