espressif / esp-hosted

Hosted Solution (Linux/MCU) with ESP32 (Wi-Fi + BT + BLE)
Other
675 stars 157 forks source link

provisioning passwords #382

Open gilbertwaltoon opened 4 months ago

gilbertwaltoon commented 4 months ago

Hi,

Espressif provide nice mobile phone apps to provision ESP32's with wifi passwords.

By contrast, getting wifi passwords into (headless) RPi's seems difficult (? it seems assumed you're flashing a new SD card or have a screen + keyboard connected).

I'm new to Esp-hosted. It looks really interesting but the examples I've seen appear to have the same provisioning problem: You need to somehow get passwords into a wpa_supplicant file on the RPi.

Is there a way to provision the ESP32 (only) with wifi passwords and use it with an Esp-hosted RPi?

thankyou

mantriyogesh commented 4 months ago

Wifi provisioning actually directly interact with ESP SSID and password, without letting host know about SSID and password.

In ESP-Hosted, we aim to provide the SSID and password in the way Linux configures the SSID, password. Intention is that host should be in control and not the slave.

Provisioning wifi directly at ESP when host intended to control the wifi, is conflict of configuration. Provisioning at Linux is not standard way to configure the wifi.

Although, we would give a thought to add it in FG, if we can allow ESP wifi directly (although conflict of configuration may co-exist), it may not be added in NG, as wifi and it's configuration is to be handled by wpa_supplicant.