WIFI: Pass & User //No touching the firmware

Nasib Fahim
Posts: 11
Joined: Wed Jun 23, 2021 2:22 pm

WIFI: Pass & User //No touching the firmware

Postby Nasib Fahim » Sat Jul 24, 2021 9:52 am

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.

felmue
Posts: 70
Joined: Mon Nov 16, 2020 2:55 pm

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

Postby felmue » Sat Jul 24, 2021 10:59 am

Hello @Nasib Fahim

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

Thanks
Felix

Nasib Fahim
Posts: 11
Joined: Wed Jun 23, 2021 2:22 pm

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

Postby Nasib Fahim » Sat Jul 24, 2021 11:39 am

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..

felmue
Posts: 70
Joined: Mon Nov 16, 2020 2:55 pm

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

Postby felmue » Sat Jul 24, 2021 3:13 pm

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


User avatar
mbratch
Posts: 303
Joined: Fri Jun 11, 2021 1:51 pm

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

Postby mbratch » Mon Jul 26, 2021 7:55 pm

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.

Who is online

Users browsing this forum: Baidu [Spider] and 137 guests