Page 1 of 1

ESP32 chip supports DPP?

Posted: Mon Feb 15, 2021 2:03 pm
by norman
ESP32 chip supports DPP? ( https://www.wi-fi.org/discover-wi-fi/wi-fi-easy-connect )
I want to setup wifi on a headless device (iot project) using dpp, from android app.
Any info /pointers would be helpful.
(I know there are other ways to setup, but all of them involves user entering ssid/password.
Because Android won't allow an app to read the wifi password )

Thanks

Re: ESP32 chip supports DPP?

Posted: Mon Feb 15, 2021 6:33 pm
by ESP_Minatel
Hi,

Please take a look at this example in ESP-IDF.

https://github.com/espressif/esp-idf/tr ... p-enrollee

Re: ESP32 chip supports DPP?

Posted: Tue Feb 16, 2021 2:57 pm
by norman
I will check that. Thanks

Re: ESP32 chip supports DPP?

Posted: Mon Mar 08, 2021 3:46 pm
by norman
Hi,
I tried this example and it is working. But I have a couple of questions.

In the dpp_enrollee_main.c there is this define:

#ifdef CONFIG_ESP_DPP_BOOTSTRAPPING_KEY
#define EXAMPLE_DPP_BOOTSTRAPPING_KEY CONFIG_ESP_DPP_BOOTSTRAPPING_KEY
#else

How do I use this? If I set any value for EXAMPLE_DPP_BOOTSTRAPPING_KEY uri becomes null.

Btw, the device is headless; no way to display the generated qr code. I need the DPP: uri to init android app.
Is there a way i can generate known k: field in dpp uri?

Thanks

Re: ESP32 chip supports DPP?

Posted: Wed Mar 10, 2021 4:53 pm
by ESP_Minatel
Hi
norman wrote:
Mon Mar 08, 2021 3:46 pm
#ifdef CONFIG_ESP_DPP_BOOTSTRAPPING_KEY
#define EXAMPLE_DPP_BOOTSTRAPPING_KEY CONFIG_ESP_DPP_BOOTSTRAPPING_KEY
#else

How do I use this? If I set any value for EXAMPLE_DPP_BOOTSTRAPPING_KEY uri becomes null.
See the help information in the configuration menu:

Name: ESP_DPP_BOOTSTRAPPING_KEY
Prompt: Bootstrapping key
Type: string
Value: ""

Help:

Private key string for DPP Bootstrapping in PEM format.


This could help you!

Re: ESP32 chip supports DPP?

Posted: Thu Mar 11, 2021 4:44 pm
by norman
Thanks