Exemplo n.º 1
0
void PubSubClient::disconnect() {
   if (!connected())
     return;

   MQTT::Disconnect discon;
   discon.send(*_client);
   _client->stop();
   lastInActivity = lastOutActivity = millis();
}
Exemplo n.º 2
0
void PubSubClient::disconnect() {
   MQTT::Disconnect discon;
   discon.send(_client);
   _client.stop();
   lastInActivity = lastOutActivity = millis();
}