Sumerizing: The ways and implementations for assigning wifi passcode to ESP32/ESP8266 MCU
Assigning WiFi pass code to ESP chip is ubiqutous.
To summerize, we can do it with ways listed below:
- AP mode: A web running on chip, Chip working as Station mode.
- Bluethooth. (ESP8266 has no bluetooth moduel.)
- ESP Touch App with ESP smartConfig© solution. (5G Hz is not supported.)
- others, such as AP-STA link by routers, AP by cellphone, wifi manag-frame broadcasting.
Comparations with methods above:
Tech Methods | UserConfident | SuccessRate | Popularity |
---|---|---|---|
softAP Mode | middle | High | High |
SmartConfig | High | Low | High |
Bluetooth | High | High | middle (esp8266 has no BLE) |
Ps: ESP32:Update Wi-Fi Credentials Using Bluetooth Application, link
Method 1: softAP for wifi passcode assigning
Refer: https://sonictl.github.io/iot/arduino/2021/08/26/p20210826204201.html
Method 2: smartConfig© with ESPTouch App
This way is cool. 2.4G wifi required.
Implemention about it can refer:
To learn: Script for controlling the IoT devices
To control an IoT device, we need to build a script system to represent commands such as SensorParamReading, DoActionOnTime, IF, ForLoop, Judgement, etc.
References:
Patent: 终端控制脚本的生成方法和装置
Aliyun IoT platform: Script syntax