Xylopyrographer / STAC

A Roland Smart Tally Atom Client
Other
3 stars 0 forks source link

Use WAP2-PSK (AES) softAP Encryption #16

Closed Xylopyrographer closed 1 year ago

Xylopyrographer commented 3 years ago

Looks like this will be possible in the upcoming v2 release of the espressif Arduino ESP32 stuff.

Ref: https://github.com/espressif/arduino-esp32/issues/4805, which refers to the upcoming v2 release.

Ref also: https://www.esp32.com/viewtopic.php?f=2&t=17672

A look into the esp32 WiFi.cpp (v1.0.6) file shows the method there should be setting the soft encryption to WPA2-PSK but it does not.

The (work in process) v2 WiFi.cpp file takes a different approach: https://github.com/espressif/arduino-esp32/blob/master/libraries/WiFi/src/WiFi.cpp

May have been a change by espressif in their IDF that broke it?

It appears though, in order to be compatible with the standard Arduino WiFi library (?), there will be no public method to set the encryption type. It is hard coded into a private function call in the v2 WiFi.cpp file (at the time of this writing anyway).

Official esp32 docs: https://docs.espressif.com/projects/esp-idf/en/release-v4.1/api-reference/network/esp_wifi.html

Search for enum wifi_auth_mode_t

Xylopyrographer commented 1 year ago

Completed with v2.0 release.