...
A SimplePublish example has been created on the mbed OS developer site: QSL SimplePublish. This is a free, online code editor and compiler that allows you to write code for the mbed OS. This makes it very easy to port code to the different supported platforms.
Like the other SimlePublish examples, the program uses the QSL to make the mote connect with the default network ID and join key. When connected, it starts periodically publishing random data, while also printing any downstream user data that arrives between each transmission. An on-board LED is used to indicate whether the mote has connected to a network or not.
Tip |
---|
The example code is written and tested on the NUCLEO-L053R8, but you should be able to compile it for any mbed supported platform that has an avalilable UART by defining the correct UART RX/TX pins in dn_uart.cpp. |
...