Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESPAsyncTCP version in libs/ won't compile with recent platforimIO ESP8266 SDK #23

Open
allthepies opened this issue Jan 3, 2018 · 7 comments

Comments

@allthepies
Copy link
Contributor

Having upgraded the PlatformIO ESP8266 SDK version recently, I then got compilation errors when building BMEsp.

I believe the issue is this one: me-no-dev/ESPAsyncTCP#57

I updated the ESPAsyncTCP library to the latest version and BMEsp now compiles [I'm yet to test it].

@vitotai
Copy link
Owner

vitotai commented Jan 3, 2018

I've tried to use latest version of ESPAsyncTCp and ESPAsyncWebServer.
There are some issues. The SSE Link will be closed and reconnected every 5 seconds. The result is that you can't edit the settings and automation process.
I am not sure wether it is caused by LWIP or ESPAsyncTCP. So far, it seems that LWIP doesn't report ACK from the peer. (I assume the TCP/IP of OSX behaviors as expected.)

Update:
I might have found the issue and submitted an issue:
me-no-dev/ESPAsyncTCP#77

I'll see how me-no-dev response and try if I can modify the code by myself.

@allthepies
Copy link
Contributor Author

allthepies commented Jan 4, 2018

Reverted to the previous platformIO esp8266 platform version and it now compiles OK with your versions of the ESPAsyncTCP libraries.

In platformio.ini modified
platform = espressif8266
to
platform = espressif8266@~1.5

As changelog for the espressif8266 platform is:
1.6.0 released 1 day ago

Finally! Release of Arduino Core v2.4.0
Add new boards: WeMos D1 mini Pro and 4D Systems gen4 IoD Range
Update espota.py to v1.1.0
Update mkspiffs tool to v0.2.0
Allow overriding PROGNAME (issue #54)
Improve support of FQDN for OTA target (issue #56)

I suspect the Arduino Core upgrade to v2.4.0 was the culprit.

Would be good to get a fixed latest ESPAsyncTCP library though.

@vitotai
Copy link
Owner

vitotai commented Jan 4, 2018

I am working on the migration of latest ESPASyncTCP/ESPAsyncWebServer library.
Last time, about one year ago, it was not stable, and the system w/ new libraries crashed sometimes. That is the real reason I keep using old version of the libraries.

The latest version seems to work fine. Maybe it has something to do with new version of framework. I've tested it for a while, and it seems to work fine. I applied the temporal solution mentioned.

If you want to try it, you can try the branch:
https://github.com/vitotai/BrewManiacEsp8266/tree/NewEspAsyncLibs

If the build "passes" my stability test, I will try to use WebSocket instead of current ServiceSideEvent. By using two-way WebSocket, the button action will be more smooth and responsive.

@allthepies
Copy link
Contributor Author

allthepies commented Jan 4, 2018

Good stuff, I will try the latest version.

You going to do similar for BPL too ?

@vitotai
Copy link
Owner

vitotai commented Jan 5, 2018

Yes.
I am trying WebSocket on BPL now.

@vitotai
Copy link
Owner

vitotai commented Jan 7, 2018

The new libraries as well as WebSocket pass my stability test.

I also fixed some bugs:
https://github.com/vitotai/BrewManiacEsp8266/tree/v040pre

@allthepies
Copy link
Contributor Author

Just loaded up the v404pre branch and it's looking good.

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

No branches or pull requests

2 participants