Skip to content

Automatic connect function #41

@skyformat99

Description

@skyformat99

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions