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

main.cpp

Committer:
KeystoneElectronic
Date:
2018-08-20
Revision:
0:c0cf12ee5420
Child:
1:70b751b7a189

File content as of revision 0:c0cf12ee5420:

#include "mbed.h"

DigitalOut led1(LED1);

// main() runs in its own thread in the OS
int main() {
    while (true) {
        led1 = !led1;
        wait(0.5);
    }
}