Wouter Van den Bogaert
/
PGO6_VoteController_template
PGO6
Diff: main.cpp
- Revision:
- 2:5b7d055dbc91
- Parent:
- 1:34e76c0cbe5a
- Child:
- 3:14b20a4f36d0
diff -r 34e76c0cbe5a -r 5b7d055dbc91 main.cpp --- a/main.cpp Sun Oct 29 23:01:06 2017 +0000 +++ b/main.cpp Tue Oct 31 09:01:56 2017 +0000 @@ -35,9 +35,7 @@ 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)