Skip to content
New issue

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

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

Already on GitHub? # to your account

Irregular reset of ESP8266 devices #270

Open
svesaja opened this issue Dec 22, 2024 · 0 comments
Open

Irregular reset of ESP8266 devices #270

svesaja opened this issue Dec 22, 2024 · 0 comments

Comments

@svesaja
Copy link

svesaja commented Dec 22, 2024

Dear all,

I have had the experience that with fauxmoESP library version 3.4.0 some (or all of them and I just didn't notice) of my devices (ESP8266) reset after several hours of operation. A Google search revealed that another user had a similar experience. His solution was to make an addition to the fauxmo library in the file fauxmoESP.cpp starting at line 390:

bool fauxmoESP::_onTCPData(AsyncClient *client, void *data, size_t len) {

if (!_enabled) return false;

char * p = (char *) data;


/* Temporary bugfix */
char dataArr[len+1];				//<<<<<<<<<<<<<<<<<<<<<<<<
memcpy(dataArr, p, len);
p = dataArr;					//<<<<<<<<<<<<<<<<<<<<<<<
/* End of temporary bugfix */

That also solved my problem. When the library was updated to 3.4.1, the problems reappeared. I manually re-introduced the changes described above and the problems were gone. Unfortunately I did not find the website again with the explanation for the necessary change.

At the moment it is unsatisfactory that when the library is updated, the changes that are necessary (at least for me) are lost again. Unfortunately, I'm a terrible programmer and can't figure out the problem/solution. Maybe someone competent can take care of this problem. Thanks and best regards
-brehe

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant