-
Notifications
You must be signed in to change notification settings - Fork 163
Open
Labels
Description
Can you add automatic connect function? thanks.
For instance, When the broker restarts, ping/pong test cannot auto connect to the broker server.
like as:
Recently, I learned about paho. MQTT. C, and found the function as:
void connectionLost(void* context, char* cause)
url:
https://github.com/eclipse/paho.mqtt.c/blob/master/src/samples/paho_c_pub.c
so, Maybe the following function names are more appropriate:
typedef void (*lmqtt_client_on_connect_lost)(void *, lmqtt_connect_t *, int);
disconnect: Disconnect actively by itself
connect_lost: Passive disconnect.