Closed mdelain closed 4 years ago
While searching, I came across a 40s delay in the NB::shutdown() function of the MKRNB library. So I guess it's not related to the MQTT library ;)
Hi @mdelain,
I guess it's not related to the MQTT library ;)
Ok, great detective work! I'm closing this issue accordingly then :)
Hello, I've been playing with the lib with MKR NB 1500 and I encounter delays that seem to be linked to the use of MQTT.
I'm trying to close MQTT and cellular connections before putting the device to sleep. I'm using the following sketch:
When I establish the MQTT connection with the broker, it takes ~10 seconds to execute the mqttClient.stop() call. Then it takes another ~40sec to execute the nbAccess.shutdown() call:
When I don't establish the MQTT connection, the nbAccess.shutdown() call is executed instantaneously:
So it seems I'm getting some delays here depending if the MQTT connections was open or not. Any thoughts about it?
Thanks! ;)