NuMaker-IoT-M487 (3) Use Wi-Fi on Mbed OS

Selected option
NuMaker-IoT-M487 (3) Use Wi-Fi on Mbed OS
Training,Tool
English
Introduction

Hello everyone, I am Morgan, the principal engineer of Nuvoton Technology. Today, I will show you how to use Wi-Fi with Mbed OS on NuMaker-IoT-M487 development board. First, open Chrome browser, enter the URL https://ide.mbed.com Please make sure that NuMaker-IoT-M487 board already selected in the upper right corner after you log in. If not, please refer Nuvoton IoT Tutorial series “Get Started with Mbed OS” which has a detailed description of how to add a board. Click the “New” on the upper left, a “Create new program” window will be displayed. You can see that the Platform has been set to NuMaker-IoT-M487. In the Template field, select the "NuMaker WiFi TCP Example" for this tutorial. Then click OK. Now you can see that the sample code has loaded on the page. Click on “mbed_app.json” to open it. In order to use Wi-Fi, you have to configure SSID and password to match your Wi-Fi access point setting. In the mbed_app.json file, the default Wi-Fi security set to WPA and WPA2 in “nsapi.default-wifi-security” field. Please modify the field “nsapi.default-wifi-ssid” to your Wi-Fi SSID Then modify “nsapi.default-wifi-password” to your Wi-Fi password. Click on “Compile” to build it. It is in compiling, please wait a moment. Then you can see the last message is “Success!” at the bottom of this page. The browser will download the binary firmware file directly after a successful compiling. It will be saved in a default download folder or the folder based on your browser setting. In Chrome, you can click download file and select “Show in folder”. Then we connect the NuMaker-IoT-M487 USB port to your computer and make sure the onboard LED lights up. Let’s back to the download folder where you can see the binary firmware file (NuMaker-mbed-wifi-tcp.NUMAKER_IOT_M487.bin). Drag and drop the file to NuMicro MCU drive. You will see the copying progress dialog box. Please find the virtual COM port assigned for NuMaker-IoT-M487 in Device Manager. In the demonstration, the “Nu-Link Virtual Com Port” is COMx. Then use your terminal tool. Here we use Putty. Open the COMx port with 115200 baud rate, 8 bits, 1 stop bit, none parity, and no flow control settings. Then “Open” it. Press Reset button on board to run again. You can see the connection messages printed on terminal. It shows the board’s IP address obtained from the Wi-Fi access point, sends a TCP/HTTP connection to server, and the result of return. That’s all for this tutorial. Thank you for watching. Welcome to subscribe to our channel. If you want to know more information, please contact us at SalesSupport@nuvoton.com - For more information, please visit Nuvoton Technology Website: https://bit.ly/3hVdcmC Buy now: https://direct.nuvoton.com/tw/numaker-iot-m487 Contact us: SalesSupport@nuvoton.com #Tool #Training #Learning #Intermediate #en

File
This website uses cookies to ensure you get the best experience on our website. Learn more
OK