Page 1 of 1

WIFI: Pass & User //No touching the firmware

Posted: Sat Jul 24, 2021 9:52 am
by Nasib Fahim
Hi all. I am using the esp32s2 device. I have programed a staion with some sensors that connects to wifi and sends some data to my server.

I guess this is a typical question but i didnt find a clear answer: :?: :?:

How can i introduce the wifi pass and user with out declaring them in the code ? I mean, is there any way to connect my device to any wifi with out modifying the firmware?

Thanks a lot in advance for your help! ;) ;)

Best regards.

Re: WIFI: Pass & User //No touching the firmware

Posted: Sat Jul 24, 2021 10:59 am
by felmue
Hello @Nasib Fahim

have a look at the provisioning manager: https://github.com/espressif/esp-idf/tr ... i_prov_mgr

Thanks
Felix

Re: WIFI: Pass & User //No touching the firmware

Posted: Sat Jul 24, 2021 11:39 am
by Nasib Fahim
Hi felmune. Thanks for your response. Normally are IoT comertial devices use BLE to pass the credentials to the device? There is not an easier way ass a AP button in the router or something like that ? I have never use a IoT device from the market.. so i dont know the stadard used here..

Thanks..

Re: WIFI: Pass & User //No touching the firmware

Posted: Sat Jul 24, 2021 3:13 pm
by felmue
Hello @Nasib Fahim

there are many ways to get a device connected to WiFi. As far as I understand provisioning manager supports BLE and WiFi. But I guess you are looking for something like WPS.

Check out this example https://github.com/espressif/esp-idf/tr ... s/wifi/wps

Thanks
Felix

Re: WIFI: Pass & User //No touching the firmware

Posted: Sat Jul 24, 2021 6:19 pm
by WiFive

Re: WIFI: Pass & User //No touching the firmware

Posted: Mon Jul 26, 2021 7:55 pm
by mbratch
Also see the Espressif site discussion of this topic: Wi-Fi Provisioning. There are other options besides BLE. For example, you can use a configuration page implemented with Soft AP, or use Smartconfig.