SetWiFi_Mic is an M5Stack program for setting up WiFi. Record the SSID and password on M5Stack's NVS (non-volatile storage device). SetWiFi_Mic supports calling of SD-Updater, so please put SetWiFi_Mic.bin file in microSD and load it using SD-Uploader. You can easily install SD-Updater by using M5Burner_Mic.
How to enter SSID and Password
1, Input with serial monitor or terminal software
When you start SetWiFi_Mic, it will look like the image below.
- You connect to M5Stack at 115,200 bps with Arduino's serial monitor or common terminal software.
- You can enter the SSID and password from the software.
If you make a mistake, SetWiFi_Mic has no function such as "Delete" or "Backspace". In such a case, please press the A button and input from the beginning again.
2, Use the WiFi SmartConfig App
M5Stack can do WiFi setting by SmartConfig. This function is the setting method supported by ESP8266 and ESP32, and can use the same application as the connected WiFi environment of the smartphone using the smartphone application.
- Press B to enter Smart Config mode.
- The image below shows the QR code of the download destination of the app for iOS application and for Android. Also, if you press the A button or C button, only one QR code will be displayed, so if it is difficult to read, please display only one and read it with your smartphone.
The smartphone app that you install is an application called Esptouch of the company Espressif of the ESP32 which is a microcomputer of M5Stack. Below is the download URL of iOS and Android of that App. It is easy for you to have the App installed.
Esptouch for iOS
Esptouch for Android
- Enter the password of the SSID (the smartphone is connected) in the "Password" field in the Esptouch app.
- Press the "Confirm" button and wait for a while to complete the settings.
To call the set SSID and Password
You can call the configured SSID and password with the following code (These are the same as WiFi settings of LovyanLauncher).
#include <Preferences.h> Preferences preferences; preferences.begin("wifi-config"); mySSID = preferences.getString("WIFI_SSID"); myPSWD = preferences.getString("WIFI_PASSWD"); preferences.end();
ver 1.0.1: 2019/ 5/24 ODROID-GO compatible ver 1.0.0: 2019/ 3/27