Comments (7)
Digging a bit deeper into this to force the IDF functions event-drivenness with a new arg in wifi_manager_event_handler
and passing false to the blocking attribute. It appears to be an issue with esp-idf blocking the thread when running the scan. Perhaps there should be a timer arg for the wifi scan instead of it being called every time jquery call it.
from esp32-wifi-manager.
Helo Alex,
You can indeed set it to false but this brings a whole lot of new issues with thread synchronization. However, it is true blocking the thread is not ideal.
The whole architecture of the manager is hindered by the events being only triggered by a bitfield.
I am currently re-writing the app so that it uses a RTOS queue as primary thread sync instead. This a major rewrite so bear with me; I do not wish to commit broken code to the repository for now!
from esp32-wifi-manager.
This is fixed in branch 2.0
from esp32-wifi-manager.
Fixed in latest master trunk -- scans are now non blocking
from esp32-wifi-manager.
Thanks for this Tony! I should have jumped in with a PR sooner but awesome to see this being actively maintained. I had set the blocking field to false and actioned the update task on in the event handler but whilst it's now 'non blocking' it's still blocking the thread for similar time when it's executing the scan (which is pretty frequently when the jquery script is running).
I'm working on project which could benefit from RTOS queues - are you keeping that effort in a working branch?
from esp32-wifi-manager.
I merged my dev branch into the master so you can simply get the master :)
Queue process starts here:
from esp32-wifi-manager.
Ah awesome :) Thanks. Would be awesome to have a build status for master :)
from esp32-wifi-manager.
Related Issues (20)
- Send data to display on the website from ESP32? HOT 1
- How to Stop wifi manager
- Editing the captive http portal to use own images and styles HOT 1
- mDNS doesn't appear to be reporting a hostname? HOT 3
- ESP32C3 Error if password incorrect
- Custom Parameters HOT 3
- Quick wipe old saved data
- DNS requests from Android11 cause disconnects HOT 4
- dns_server not stopping when wifi_manager_destroy() called
- wifi_manager_destroy() causes ESP32 to crash
- Support for IPv6
- Classic Bluetooth and WiFi Manager together HOT 1
- Add Documentation for "Header Fields are too long for the server to interpret" error HOT 2
- Webapp location is sensitive
- Support IDF v5.0 HOT 3
- Need help - problem getting OTA to work with Wifi Manager HOT 10
- Need Help! How to have multiple HTTP_GET for http_app_set_handler_hook HOT 1
- Hi, im not so understand for this part for httpd_app.c. Can i have more HTTP_GET from the custom_get_httpd_uri_handler custom_post
- HELP! How to have multiple http_app_set_handler_hook(HTTP_GET, &my_get_handler).
- Reset occurs when previously connected wifi is no longer in range
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp32-wifi-manager.