• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

main/11-Mar-2024-200149

CMakeLists.txtD11-Mar-2024312 96

MakefileD11-Mar-2024253 113

README.mdD11-Mar-20244.3 KiB6754

README.md

1# Device Provisioning Protocol (Enrollee) Example
2
3This example shows how to configure ESP32 as an enrollee using Device Provisioning Protocol(DPP) also known as Wi-Fi Easy Connect.
4
5DPP provides a simple and secure way to onboard ESP32 to a network.
6We now support Responder-Enrollee mode of DPP with PSK mode of authentication.
7
8You need a Wi-Fi Easy Connect with Initiator mode capable device to make use of this example. Some Android 10+ devices have this capability. (Vendor specific)
9
10To run the example with an Android 10+ device follow below steps -
111. Compile and flash the example on ESP32, a QR code will appear on your console.
122. Connect your phone to the network, say named "Example-AP".
133. Now go to Settings->WiFi & Internet->Wi-Fi->Example-AP->Advanced->Add Device.
144. Scan QR Code using the scanner, which will make ESP32 connect to Example-AP.
15
16Optional configuration available
17
18*Note:*
19- QR Code should be displayed as dark on a white/light background to work properly.
20- If displayed QR Code had line gaps, try switching to a new font or a diiferent Terminal program. See below QR Code for for checking beforehand.
21
22### Example output
23
24Here is an example of the console output.
25```
26I (807) wifi:mode : sta (24:0a:c4:23:da:20)
27I (807) wifi dpp-enrollee: Started listening on Channel 11 for DPP Authentication
28I (1157) wifi dpp-enrollee: Scan below QR Code to configure the enrollee:
29
30
31  █▀▀▀▀▀█ ██▄▄▄█▄▀██▄▄█▄   ▀ ▀▄ █▄▄ █▀▀▀▀▀█
32  █ ███ █ ██▀█▀ ▀▀██▀█▄█▀▄▀ ██▀▀█ ▄ █ ███ █
33  █ ▀▀▀ █ ▄█▀▄▄ ▄▄▀ █▄▀ ▄ ▄ ▄▀▄ ██  █ ▀▀▀ █
34  ▀▀▀▀▀▀▀ ▀ █▄▀ ▀ ▀▄▀▄▀▄▀ █ ▀ ▀▄█ ▀ ▀▀▀▀▀▀▀
35  █▀ ▄██▀ ▄█ ▀█ ▄▀▄▄▄ ▀▀█▄ ▄▀█▄█▀▀▄▄▄▀▄██▀█
36  █▄▀ ▄ ▀▄█▄ ▀▀█▀▀█ ▀▄ ▄█▀▀▀▀█▀▄▄▄ ██▄   ▄█
37  ▀█▀█▀ ▀▀ ▀  ▄▀▄▀▀ ▄ ▄▀▀▀ █▄ ▄▄  ▀█▄▀▄  █
38  ▀ ▀  ▀▀▀█▄ █▀▀ █▄▄▄ █▄ █▄▀ ██▄ ▄▄▀█▄▀  ▄█
39  ▀██▀▄█▀▄ ▄█ ▀▄▀ █ ▄  ▄█▄▀▄▀▄▄▀▄ ▄▄▄▀▄▄
40    ▀▀▄█▀█▄▀▀█▄ ▄▀ █▄ ▀█▄█▄▀ ▀█▄▄ ▄▀▄ █▄▀ █
41  ▄▀▀ ▀█▀▀▀ ▄ ▀█▀▀▄ ▀ ▄▄█▄ █ ██▀▄▀▀▄▄▄▄█▀▄
42   ▀ ███▀▀▄ ▄ ▄   ▀█▄▄▀█▀▀▀  ▀▀▄▄  ▀  █▄ ▄█
43  █ ▀▄▄ ▀▀▀▀▄▀▀▀▄█▄▄ ▄▀▄▀ ▀▄▀▄▀█▀▀▄▀  ▄█▄▀
44   ███ ▄▀▄▀▀▄▀▀█▀▀▄ ▀▄ ████ █▀▄█▄▄ ▀█▄ ▀▀ ▀
45  ▄▀█▀▀▀▀█▀   ▄█▄▀▀ ▄ ▀█▀▀ ▀ ▄▀▀ ▀▄█  ▄  ▀
46    █ ▀▀▀▄██▄█▀ ▀█▄█▄ ▀██▀▄▀▄▀ █▀ ▀ ▄▄▀█ ▄█
47  ▀▀▀ ▀▀▀▀▄▄█▄▀█▄ ▄  ▄  ▀▀▀█▄▄▀▀▀ █▀▀▀██▀▀▄
48  █▀▀▀▀▀█ ▄▄▀█▀ ▄█▄█▄▄█▄ ▀ ▀▀▀█▄ ▀█ ▀ █ ▀ █
49  █ ███ █ ▀█▀ ▀█▀▀▄▄▀ ▀▄█▀▀   ██▀█▀▀▀█▀▄▄▄█
50  █ ▀▀▀ █ ▄▀█ ▄ ▄ ▀█▄ ▀▄▀█ ▀▄██▄  ▀ ▄█ ▄▀▄█
51  ▀▀▀▀▀▀▀ ▀  ▀ ▀ ▀    ▀▀▀   ▀▀▀▀▀ ▀ ▀    ▀
52
53I (6357) wifi dpp-enrollee: DPP Authentication successful, connecting to AP : DigitalFortress
54I (6477) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1
55I (7277) wifi:state: init -> auth (b0)
56I (7277) wifi:state: auth -> assoc (0)
57I (7287) wifi:state: assoc -> run (10)
58I (7317) wifi:connected with DigitalFortress, aid = 4, channel 1, BW20, bssid = 04:d4:c4:5e:22:f0
59I (7317) wifi:security type: 3, phy: bgn, rssi: -60
60I (7427) wifi:pm start, type: 1
61
62I (7427) wifi:AP's beacon interval = 102400 us, DTIM period = 1
63I (11617) esp_netif_handlers: sta ip: 192.168.1.216, mask: 255.255.255.0, gw: 192.168.1.1
64I (11617) wifi dpp-enrollee: got ip:192.168.1.216
65I (11617) wifi dpp-enrollee: connected to ap SSID:DigitalFortress password:password
66```
67