motwok / thisandthat

Just a collection of mixed things
GNU General Public License v3.0
10 stars 6 forks source link

Wifi fallback recovery for testing #1

Open sthorley opened 2 years ago

sthorley commented 2 years ago

Hi, thanks for the impressive work. Sorry the ESPhome team didn't give you more support for your PR.

I was wondering how you validated/tested the communication once you flashed this component. I've realised there seems to be no easy way to test as once I flash it, the only way to read logs etc would be with serial as I lose regular wifi ap capability... Is that correct? Did you ever configure a proxy to enable both wifi and wifi_now connectivity?

Thanks for any advice you can give...

motwok commented 2 years ago

Sorry when i answer late (had a few health problems)

Sorry the ESPhome team didn't give you more support for your PR. Meanwhile i develop a complete new more modular version but it takes much more time.

I was wondering how you validated/tested the communication once you flashed this component. Simple do not disconnect the USB Cable and use Serial logging as you state later

... as I lose regular wifi ap capability... Is that correct? Nope... you have all possibilitys... the only caveat is that Wifi STA rules the channel for receiving... in a future version i will add some support to go around this problem on the sender side.

Did you ever configure a proxy to enable both wifi and wifi_now connectivity? Yes... that is one of the applications... unfortunately there is a interoperatibility problem between ESP32 and ESP8266 when wifi is enabled on ESP32, looks like some cryptographic problem between NonOS and RTOS versions of the ESP librarys.