Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: C027_Support C12832 StatusReporter LM75B MQTT-ansond c027_radios endpoint_core endpoint_mqtt mbed-rtos mbed
Diff: MQTTTransport.cpp
- Revision:
- 133:e69d03f4eb5c
- Parent:
- 132:563a1ee99efc
- Child:
- 136:ea8f3900bc13
--- a/MQTTTransport.cpp Mon Mar 17 02:40:14 2014 +0000
+++ b/MQTTTransport.cpp Mon Mar 17 03:44:56 2014 +0000
@@ -312,7 +312,7 @@
// process this PONG message
void MQTTTransport::processPongMessage(char *payload,int payload_length) {
// DEBUG
- this->logger()->log("Received PONG: counter=%d",this->m_ping_counter);
+ //this->logger()->log("Received PONG: counter=%d",this->m_ping_counter);
// simply increment the counter
++this->m_ping_counter;
@@ -333,7 +333,7 @@
sprintf(message,"ping:%s:%d:",this->m_endpoint_name,this->m_ping_counter);
// send the message over the ping/pong topic
- this->logger()->log("Sending PING: counter=%d",this->m_ping_counter);
+ //this->logger()->log("Sending PING: counter=%d",this->m_ping_counter);
sent = this->m_mqtt->publish(MQTT_PING_SEND_TOPIC,message,strlen(message));
if (sent) {
// send succeeded
@@ -429,7 +429,7 @@
// send a PING if time for it
--this->m_ping_countdown;
if (this->m_ping_countdown <= 0) {
- this->logger()->log("MQTT: Sending PING...");
+ //this->logger()->log("MQTT: Sending PING...");
this->m_ping_countdown = MQTT_PING_COUNTDOWN;
this->sendPingMessage();
}