void connlost(void *context, char *cause) { MQTTAsync client = (MQTTAsync)context; MQTTAsync_connectOptions conn_opts = MQTTAsync_connectOptions_initializer; int rc; printf("\nConnection lost\n"); printf(" cause: %s\n", cause); printf("Reconnecting\n"); conn_opts.keepAliveInterval = 2...
Hello, I am originally coming from the paho mqtt cpp lib and tracked my problem down here. It looks like the MQTTAsync_connectionLost callback will not be triggered if the broker (in my case mosquitto) goes down. I can reproduce this wit...