Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: WebSocketClient WiflyInterface mbed messages
You are viewing an older revision! See the latest version
Code to Change
In order for the mbed to connect to your network, you will have to tell it ahead of time your network name, and password, etc. Here are the bare minimum lines you have to modify, separated by filename:
main.cpp¶
Change Line 56 for each unique IoT device that you would like to connect to your server. The value of IoT_ID should be an integer. You can leave it a 1 for your first device.
55 // Set the IoT ID: 56 IoT_ID = 1; 57
After completing all of the changes, compile and download the program to the mbed. The mbed will start connecting to the wifi network, and once successful, try to connect to your server. You can open up Tera Term to see the serial output of the microcontroller.