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.
Fork of HelloMQTT by
Diff: main.cpp
- Revision:
- 25:326f00faa092
- Parent:
- 23:06fac173529e
- Child:
- 26:4b21de8043a5
diff -r 9d5f0300d7ed -r 326f00faa092 main.cpp
--- a/main.cpp Sun Mar 26 04:38:36 2017 +0000
+++ b/main.cpp Mon Mar 27 03:53:18 2017 +0000
@@ -62,7 +62,7 @@
void messageArrived(MessageData& md)
{
Message &message = md.message;
- printf("Arrived Callback 1 : qos %d, retained %d, dup %d, packetid %d\r\n", message.qos, message.retained, message.dup, message.id);
+ printf("Arrived Callback 2 : qos %d, retained %d, dup %d, packetid %d\r\n", message.qos, message.retained, message.dup, message.id);
printf("Payload [%.*s]\r\n", message.payloadlen, (char*)message.payload);
++arrivedcount;
}
@@ -126,7 +126,7 @@
i++;
//TODO: Nothing here yet ...
- Thread::wait(1000);
+ Thread::wait(6000);
}
}
