Skip to content
M5Stack / Odroid-GO program for configuring WiFi. Record the SSID and password on NVS (non-volatile storage device) in M5Stack. (JP: WiFi設定するためのM5Stack / Odroid-GO のプログラム。SSIDとパスワードをM5StackのNVS(不揮発記憶装置)に記録します)
C++
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
images
microSD
M5Stack-SetWiFi_Mic.ino
README.md
README_jp.md

README.md

SetWiFi_Mic

日本語READMEはこちら

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.

  1. You connect to M5Stack at 115,200 bps with Arduino's serial monitor or common terminal software.
  2. 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.

MacDown logo

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.

  1. Press B to enter Smart Config mode.
  2. 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.

MacDown logo

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
https://itunes.apple.com/jp/app/id1071176700

Esptouch for Android
https://git.io/fjUSl

MacDown logo MacDown logo

  1. Enter the password of the SSID (the smartphone is connected) in the "Password" field in the Esptouch app.
  2. 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();

History

ver 1.0.1: 2019/ 5/24 ODROID-GO compatible
ver 1.0.0: 2019/ 3/27

License

CC BY 4.0 Micono (http://github.com/micutil/SetWiFi_Mic).

You can’t perform that action at this time.