-->
Page 2 of 2

Re: Is there a way to tell when an outgoing transmission is

PostPosted: Mon Jan 08, 2018 2:47 pm
by BjornJ
Good idea, I will try this. Thanks.

gdsports wrote:After mqttClient.disconnect(), wait for both the mqttClient and the tcpClient to report not connected. Then do an additional 50 ms delay before going to deep sleep. Works for me.

Code: Select all  if (!mqttClient.connected() && !tcpClient.connected()) {
    // Allow time for final FIN ACK
    delay(50);
    deepsleep_normal();
  }