Example project to publish messages to a MQTT-SN broker using the u-blox SARA-N200 NB-IoT modem
Dependencies: MQTTSNPacket X-NUCLEO-SARA-N200
Diff: main.cpp
- Revision:
- 0:c0cf12ee5420
- Child:
- 1:70b751b7a189
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Aug 20 12:59:35 2018 +0000 @@ -0,0 +1,12 @@ +#include "mbed.h" + +DigitalOut led1(LED1); + +// main() runs in its own thread in the OS +int main() { + while (true) { + led1 = !led1; + wait(0.5); + } +} +