Access to PROV_ code

ronbreukers
Posts: 19
Joined: Tue Dec 14, 2021 2:45 pm

Access to PROV_ code

Postby ronbreukers » Wed Mar 19, 2025 2:15 pm

I have an application where I want the customer to be able to read the QR code for provisioning from the build-in display.
To that end I need to access the PROV_xxxxxx number to recreate the QR code.
Does anyone know where I can find this prov code? I started digging through the source code, but it is snaking to all sorts of routines an I sort of lost track. It would be a tremendous help is anyone could point me to the right direction
Thanks

Piyush
Espressif staff
Espressif staff
Posts: 372
Joined: Wed Feb 20, 2019 7:02 am

Re: Access to PROV_ code

Postby Piyush » Wed Mar 19, 2025 2:32 pm

Best option would be to register for the APP_NETWORK_EVENT_QR_DISPLAY event under the APP_NETWORK_EVENT event group. You will get the QR code payload in the event_data. You can find samples of event handling in the switch example. Let me know if the event handling is not clear to you.

ronbreukers
Posts: 19
Joined: Tue Dec 14, 2021 2:45 pm

Re: Access to PROV_ code

Postby ronbreukers » Wed Mar 19, 2025 7:24 pm

Thank you very much ESP_Piyush for the very quick answer I will study your suggestion. If, after really studied it, I still have questions, I will come back.

ronbreukers
Posts: 19
Joined: Tue Dec 14, 2021 2:45 pm

Re: Access to PROV_ code

Postby ronbreukers » Thu Mar 20, 2025 11:51 am

Thank you ESP_Piyush. It worked flawlessly! Your suggestions saved me many hours of searching!

I have another question I hope you may help me with, but since the subject is different I will open another thread.

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest