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

Exception (28) on demo app #21

Open
aldolo69 opened this issue Dec 24, 2020 · 2 comments
Open

Exception (28) on demo app #21

aldolo69 opened this issue Dec 24, 2020 · 2 comments

Comments

@aldolo69
Copy link

during "discovery" esp crash with exc 28 every time.
esp core version 2.7.4 (latest)

@lalalandrus
Copy link

took a while but i narrowed the exception cause in WemoManager.cpp to line 65 :
UDP.read(packetBuffer, packetSize);

I think the new core returns a UDP packet larger than packetBuffer as packetSize is unchecked. My fix is to modify WemoManager.cpp line 8 to:
char packetBuffer[1024];

Probably overkill but it works. If you are short on ram then reduce it until it doesnt work and report your findings. There probably is a way to check the UDP library to see what it should be expecting based on the typical Alexa packet but I am too lazy.

@aldolo69
Copy link
Author

it works now. you should commit the change to github

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