Example program to create IoT devices for a local network, which connect to a local server.

Dependencies:   WebSocketClient WiflyInterface mbed messages

Compiling and Programming

Install the Wifi Shield onto the mbed, and plug the mbed into your computer with a USB cable. The mbed should show up as a USB drive.

Import this IoT_Ex into your online compiler by pressing the “Import into Compiler” button. If you are prompted to select a hardware platform, choose the “NUCLEO-F401RE”.

Open the “main.cpp” file, and press the “Compile” button. Once completed, a .bin file will be downloaded. When you are ready to program your mbed, copy this file onto your mbed. However, do not do it yet! We need to change some settings first.

Next: Code to Change...


All wikipages