An exemple for the lib niMQTT

Dependencies:   niMQTT mbed

Revision:
2:d42e14112adf
Parent:
0:db40c618e10c
--- 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");