pingResponseReceived method
Processed ping response messages received from a message broker.
Implementation
bool pingResponseReceived(MqttMessage? pingMsg) {
MqttLogger.log('MqttConnectionKeepAlive::pingResponseReceived');
// Call the pong callback if not null
if (pongCallback != null) {
pongCallback!();
}
// Cancel the disconnect timer if needed.
disconnectTimer?.cancel();
return true;
}