MQTT Client: Helper Macros for RX PUBLISH

Message Queuing Telemetry Transport Protocol

Helper Macros for RX PUBLISH

Defines

#define MQP_PUB_TOP_BUF(mqp)   (MQP_VHEADER_BUF(mqp) + 2)
#define MQP_PUB_TOP_LEN(mqp)   (mqp->vh_len - 2 - (mqp->msg_id? 2 : 0))
#define MQP_PUB_PAY_BUF(mqp)   (mqp->pl_len? MQP_PAYLOAD_BUF(mqp) : NULL)
#define MQP_PUB_PAY_LEN(mqp)   (mqp->pl_len)

Define Documentation

#define MQP_PUB_PAY_BUF (   mqp)    (mqp->pl_len? MQP_PAYLOAD_BUF(mqp) : NULL)

Yields pointer to payload data

#define MQP_PUB_PAY_LEN (   mqp)    (mqp->pl_len)

Length or size of payload data

#define MQP_PUB_TOP_BUF (   mqp)    (MQP_VHEADER_BUF(mqp) + 2)

Yields pointer to topic content

#define MQP_PUB_TOP_LEN (   mqp)    (mqp->vh_len - 2 - (mqp->msg_id? 2 : 0))

Length or size of topic content

Generated on Mon Nov 17 2014 12:11:04 for MQTT Client by  doxygen 1.7.4