Niels Balemans
/
PGO6_VoteController_Niels_Balemans_
vote controller
Fork of PGO6_VoteController_template by
Diff: main.cpp
- Revision:
- 2:5b7d055dbc91
- Parent:
- 1:34e76c0cbe5a
- Child:
- 3:062b94b59b1b
--- 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)