Provisioning Scheme Introduction

[中文]

Note

This document is automatically translated using AI. Please excuse any detailed errors. The official English version is still in progress.

Attention

The provisioning scheme in this document refers to the scheme for configuring and connecting ESP devices to Wi-Fi in different ways. Other schemes such as BLE-MESH provisioning are not included in this document.

Scheme Overview

During the code development phase, Wi-Fi information (SSID and PASSWORD) is often written directly into the program, which cannot be changed at any time to connect to the desired Wi-Fi, which is obviously impractical. New projects should use unified provisioning. BluFi is in maintenance mode and is no longer a recommended scheme. The available provisioning schemes are as follows:

  • Unified Provisioning (network_provisioning, recommended)

  • Smartconfig Provisioning

  • BluFi Provisioning (maintenance mode, no longer recommended)

  • WEB Provisioning (not recommended)

Taking the common application scenario of provisioning smart sockets as an example, as follows.

Provisioning Scenario

Allow users to configure Wi-Fi information to ESP devices through mobile phones. Different provisions have their own advantages and disadvantages, and the next section elaborates on the details of these provisioning schemes.

Common Provisioning Application Scenarios

2. Smartconfig Provisioning

This method does not require the establishment of any communication link. The mobile phone sends UDP broadcast packets of different lengths to represent Wi-Fi information. The ESP device listens to all data frames within the signal coverage range in promiscuous mode and obtains Wi-Fi information through a certain algorithm. The disadvantage is that the success rate of provisioning is greatly affected by the environment.

Software Code & APP Reference Links:

Reference Materials

The brief summary of the provisioning scheme materials is as follows:

Attention

If you need more references like provision APP, please get the corresponding information in Common Provisioning Application Scenarios.