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

ESP32 Device fails to be recognised after a while #230

Open
SrikanthBala opened this issue Aug 5, 2022 · 0 comments
Open

ESP32 Device fails to be recognised after a while #230

SrikanthBala opened this issue Aug 5, 2022 · 0 comments

Comments

@SrikanthBala
Copy link

SrikanthBala commented Aug 5, 2022

I have a ESP32 MH ET Live ESP32 DEVKIT board emulating 6 devices for a 6 socket board, using fauxmo. I have the latest version of fauxmo 3.4.0 and am using Arduino 1.8.19 and ESP32 V1.06 installed.
Alexa added all 6 devices and switches them on and off for approx 6 hrs to 8 hrs
After that Alexa says the device is not responding. I know the ESP 32 has not stuck in some loop as all other fuctions like using a touch pin to switch on the relay works fine.
However typically after 6 to 8 hrs alexa fails to find the device. All I need to do is to reset the device and Alexa finds it immediately (So it is a device end problem and not a alexa problem)

Any suggestions ?
Full Code attached

P.S.
If you are wondering about this piece of code :

if(flgFauxmoActivated) {
if ((millis() - tm_fauxmorestart) > 900000) { // every 15 mins stop and restart fauxmo. Being tried because fauxmo disconnects every few hours
fauxmo.enable(false);
tm_fauxmorestart = millis() ;
delay(100);
fauxmo.enable(true);
}
fauxmo.handle();
}

It was an attempt to work around the problem by trying to disable fauxmo and restart fauxmo every few minutes , hoping it would clear some buffers etc. Seemed to make it go for longer but definitely fails within 12 hrs

Alexa SpikeGuardV3.txt

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

1 participant