[Visit https://www.nuvoton.com/iot_startup for more IoT solutions]
On the NuMaker development board, there is a ESP-12F Wi-Fi module; however, the NuMaker UNO package in the Arduino IDE does not provide relevant control for this module. If you wish to control this module within the Arduino IDE, how should you proceed?
Please refer to the attachment, which adds a UART object to support the ESP-12F Wi-Fi module on the NuMaker-IoT-M467 development board.
Download the attachment and extract it to the following directory:
C:\User\YOUR-ACCOUNT\AppData\Local\Arduino15\packages\nuvoton\hardware\nuvoton\2.3.2\cores\nuvoton
This attachment is based on the NuMaker UNO package version 2.3.2. The modified files are as follows:
- HardwareSerial.cpp
- HardwareSerial.h
- Ping_M460_arduino.cpp
- Ping_M460_arduino.h
After the update, you can create a simple UART pass-through Arduino program to test the Wi-Fi.
Code: Select all
void setup() {
Serial1.begin(115200); // for ICE UART
Serial2.begin(115200); // for Wi-Fi UART
}
void loop() {
if (Serial1.peek() > 0)
{
Serial2.write(Serial1.read());
}
if (Serial2.peek() > 0)
{
Serial1.write(Serial2.read());
}
}
Enjoy it.