...
mqtt-c.h/mqtt-c.c
Prototype
Code Block |
---|
void MQTTc_Connect (MQTTc_CONN *p_conn,
MQTTc_MSG *p_msg,
MQTTc_ERR *p_err); |
Arguments
p_conn
Pointer to MQTTc Connection to use.
p_req_objmsg
Pointer to MQTTc Message object to use.
p_resp_obj
Pointer to the HTTPc Response object that will be filled with the HTTP response received from the server.
p_err
Pointer to variable that will receive the return error code from this function:
...
- This function MUST be called after the µC/MQTT-client initialization has been completed.
- Both the
MQTTc_CONN
object and theMQTTc_MSG
object used MUST stay valid until the message has completed (callback has been called).