...
mqtt-c.h/mqtt-c.c
Prototype
Code Block |
---|
void MQTTc_Publish ( MQTTc_CONN *p_conn,
MQTTc_MSG *p_msg,
const CPU_CHAR *topic_str,
CPU_INT08U qos_lvl,
CPU_BOOLEAN retain_flag,
const CPU_CHAR *p_payload,
CPU_INT32U payload_len,
MQTTc_ERR *p_err); |
Arguments
p_conn
Pointer to MQTTc Connection to use.
...
Level of QoS at which to publish.
retain_flag
Flag indicating if the retain flag in the PUBLISH
header needs to be set.
p_payload_str
String containing Pointer to the payload to publish. Must stay valid until the message has been completely sent.
payload_len
The length of the payload to publish.
p_err
Pointer to variable that will receive the return error code from this function:
...