Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wifi: rework (re)connection and softAp logic
Immediatly try to connect when reloading settings and previous attempt had failed. Because of locking, previously this caused a soft-lock of the internal loop that required waiting for the long Reconnect timeout to expire first. Refactor the module to include namespace { ... } and move build settings into .cpp Saves ~1.5Kb and also allows gcc to issue unused warnings for declared functions. As a side-effect of refactoring, (temporarily?) remove softAp leases support. Current Core moved dhcps support into a C++ code, forcing internal logic to reference a specific object. Better to wait a bit until that stabilizes and try again. Plus, it is not currently available in the esp-idf.
- Loading branch information