An exemple for the lib niMQTT

Dependencies:   niMQTT mbed

Files at this revision

API Documentation at this revision

Comitter:
Nim65s
Date:
Tue Aug 13 13:44:23 2013 +0000
Parent:
1:4fcb7135d040
Commit message:
updated niMQTT version

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
niMQTT.lib Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Aug 12 15:35:56 2013 +0000
+++ b/main.cpp	Tue Aug 13 13:44:23 2013 +0000
@@ -8,7 +8,7 @@
 DigitalOut led(LED1);
 DigitalIn pub(p14);
 
-void callback(char *topic, char *message) {
+void callback(const char *topic, const char *message) {
     printf("==== New PUBLISH received ====\r\n");
     printf(topic);
     printf("\r\n------------------------------\r\n");
--- a/niMQTT.lib	Mon Aug 12 15:35:56 2013 +0000
+++ b/niMQTT.lib	Tue Aug 13 13:44:23 2013 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/Nim65s/code/niMQTT/#3d21020a2826
+http://mbed.org/users/Nim65s/code/niMQTT/#438958bb9df3