EMW3080 WiFi example for mbed OS
EMW3080 Hello World on Nucleo F401RE
This is a quick example of a simple WiFi application using EMW3080 WiFi and network-socket APIs that is provided as a part of mbed OS.
The program brings up the WiFi and the underlying network interface, and uses it to connect to a network, prints interface and connection details and performs simple HTTP operation.
Wiring the EMW3080 Shield to the Nucleo F401RE¶
By default, the shield will connect the TX/RX of the radio to D1/D0 on the Nucleo board. However, these serial lines are muxed with that for the USB serial connection, so stdio serial and D1/D0 cannot be used at the same time. You will instead connect the TX/RX of the shield to D2/D10. To accomplish this:
- Bend the TX/RX pins of the shield outward, so that they do not make contact with the board
- Place the shield on the board's arduino headers
- Wire the TX pin on the EMW3080 to D10 on the Nucleo
- Wire the RX pin on the EMW3080 to D2 on the Nucleo
Compiling and Running the Application¶
- Import the program:
Import programemw3080-wifi-example
EMW3080 WiFi example for mbed OS
- Configure the WiFi credentials by editing mbed_app.json to include correct SSID and Password.
- Compile the program and load it to the Nucleo board
- Reset the board
- Connect to the board with a serial terminal set to 115200 baud