PGO6

Dependencies:   MQTT

Revision:
1:34e76c0cbe5a
Parent:
0:fd29cd85e75e
Child:
2:5b7d055dbc91
--- a/main.cpp	Thu Oct 26 07:33:07 2017 +0000
+++ b/main.cpp	Sun Oct 29 23:01:06 2017 +0000
@@ -35,7 +35,9 @@
             InterruptIn button(USER_BUTTON);
             ...
             button.fall(callback(someFunction));
+        The function someFunction(void) is called when this interrupt occurs.
     -   Before implementing MQTT, test the multiclick feature first.
+        You can simply use 'printf()' to print to a serial terminal. The baud rate is 9600.
     -   Have a look at the MQTT-library for Mbed and the HelloMQTT-example.
     -   To have a uniform message sending procedure, use the following function usage:
             sendMessage(&client, topic, buf, qos, retained, duplicate)