AWS IoT Device SDK C:
MQTT
MQTT 3.1.1 client library
|
Return to main page ↑ |
Generate a PUBLISH packet from the given parameters.
[in] | pPublishInfo | User-provided PUBLISH information. |
[in] | remainingLength | remaining length of the packet to be serialized. |
[out] | pPacketIdentifier | The packet identifier generated for this PUBLISH. |
[out] | pPacketIdentifierHigh | Where the high byte of the packet identifier is written. |
[in,out] | pBuffer | User provide buffer where the PUBLISH packet is written. |
[in] | bufferSize | Size of the buffer pointed to by pBuffer. |
Example