rstrouse / ESPSomfy-RTS

A controller for Somfy RTS shades and blinds
The Unlicense
565 stars 39 forks source link

"Cancelling WiFi STA Scan..." spam on serial #473

Open AAfetisov opened 1 month ago

AAfetisov commented 1 month ago

Hardware

ESP32-S3

Firmware version

v2.4.6

Application version

v2.4.6

What happened? What did you expect to happen?

Configured espsomfy to use with another wifi network. Left it running at my place overnight plugged into macbook's usb port(those don't power down during sleep), but unconnected to wifi. It kept looking for an AP on serial (evt) Completed scan for access points (0). Checked serial in the morning, it was spamming "Cancelling WiFi STA Scan..." with the speed of 100 lines a second. I also noticed that my notebook got auto connected to ESPsomphy wifi ap, which shouldn't even be on. 192.168.4.1 wasn't responding. In several minutes the spam calmed down, wifi ap disappeared, and it was back to normal (evt) Completed scan for access points (0) messages.

https://github.com/user-attachments/assets/aa5a2c0d-afa1-4d54-a424-6a8679024744

How to reproduce it (step by step)

1. leave espsomfy running for a prolonged period of time not connected to the wifi

Logs

No response

ron7684 commented 1 month ago

When this happened to me it was because I was still connected to the ESPsomphy WiFi AP on the device I used to configure it. It will only reconfigure its wifi settings when all clients disconnect from its AP.