How to assign wifi passcode to ESP32/8266 chips

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 MethodsUserConfidentSuccessRatePopularity
softAP ModemiddleHighHigh
SmartConfigHighLowHigh
BluetoothHighHighmiddle (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: 终端控制脚本的生成方法和装置

https://cs.uwaterloo.ca/~brecht/courses/854-IoT-2016/readings/programming/scriptIoT-iot-journal-2016.pdf

Aliyun IoT platform: Script syntax

Published At
comments powered by Disqus