Skip to content

Change the web server and tcp to be async#794

Closed
bwssytems wants to merge 538 commits intotzapu:masterfrom
bwssytems:ConvertToAsync
Closed

Change the web server and tcp to be async#794
bwssytems wants to merge 538 commits intotzapu:masterfrom
bwssytems:ConvertToAsync

Conversation

@bwssytems
Copy link
Copy Markdown

Changed the sub system to use the ESPAsyncWebServer and AsyncTCP. Allows for better TCP handling.

tablatronix and others added 30 commits March 14, 2018 12:52
Added Custom DNS, fix newlines
Prboably going to add a vector for this, I do not want to add the overhead of std::array for something optional
This kind of makes it a pain in the ass for users, not sure how to make this easier, I can take in an array of string ids, with a count arg, makes it easier, but then users can pass nonsense in, this way its enum ids, but damn it sure is convoluted. Welcome to ideas here...

```c++
  std::vector<WiFiManager::menu_page_t> menu = {wm.MENU_WIFI,wm.MENU_INFO,wm.MENU_PARAM,wm.MENU_CLOSE,wm.MENU_SEP,wm.MENU_ERASE,wm.MENU_EXIT};
  wm.setMenu(menu);
```
@Jorgen-VikingGod
Copy link
Copy Markdown

any progress here - is it the goal to move to async or maybe support both (by define switch)?
Would like to have a official async version - because my webserver code of ESP32 is async - so I can not use the normal WiFiManager and had to use an unstable unofficial async fork for ESP32...

@bwssytems
Copy link
Copy Markdown
Author

@Jorgen-VikingGod You can just replace the WiFiManager library with the one from my branch "https://github.com/bwssytems/WiFiManager/tree/ConvertToAsync" and you will be good to go

@tablatronix
Copy link
Copy Markdown
Collaborator

tablatronix commented Mar 5, 2019

@bwssytems Can you go over the changes you made to implement, this PR diff is illegible. Or create a new PR without the messy history?

@bwssytems
Copy link
Copy Markdown
Author

@tablatronix The best thing is to go to my branch and do the diff as that will look much cleaner. The changes were changing to the async items instead of the ESP32/8266 versions and then updating the logging.

@tablatronix
Copy link
Copy Markdown
Collaborator

ohh your PR target is master not development branch, lol I was like wtf is going on, could not diff it.

@tablatronix
Copy link
Copy Markdown
Collaborator

tablatronix commented Mar 6, 2019

I guess I can change it but here we go

development...bwssytems:ConvertToAsync

@tablatronix
Copy link
Copy Markdown
Collaborator

tablatronix commented Mar 6, 2019

These changes are minor enough to simply swap them in using a processor directive.
I probably will not merge since you deleted stuff and changed logging and removed non async

@bwssytems
Copy link
Copy Markdown
Author

That would work, Shall we close this pull request?

@tablatronix
Copy link
Copy Markdown
Collaborator

Sure we can reference the issue and I will work on getting this implemented soon
Thanks
#158

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.