Guilhem Saurel
/
niMQTT_example
An exemple for the lib niMQTT
Revision 2:d42e14112adf, committed 2013-08-13
- 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 |
diff -r 4fcb7135d040 -r d42e14112adf main.cpp --- 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");
diff -r 4fcb7135d040 -r d42e14112adf niMQTT.lib --- 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