Aircoookie / Espalexa

Alexa voice control for ESP8266/ESP32 (including brightness and color!)
MIT License
545 stars 137 forks source link

Adding More than 9 Devices #85

Open Mattbatt84 opened 5 years ago

Mattbatt84 commented 5 years ago

The only issue I am facing here is adding more than 9 devices. I can add 9 without issue. The 10th or any more after that are discovered but "device is unresponsive". Has anyone else come across this and potentially a fix for it. I found this after searching the Fauxmo forums and although it is working wonderfully with the neopixels library I cannot get more than 9 devices to work. Any help appreciated.

Aircoookie commented 5 years ago

Hi! There is a limitation to 10 devices by default to save memory. Try adding #define ESPALEXA_MAXDEVICES 20 (for example) before #include <Espalexa.h> in your sketch. I hope that this will help :)

Mattbatt84 commented 5 years ago

Unfortunately I have already tried going down that route. This issue is that it will add all your device but anything over 10 and the device will fail and post a server not responding in the alexa app. It does not look like there is any way with arduino to add more than 10 working devices. From what i have found it is to do with the size of the file that uploads to the nodemcu and then how long and how much data alexa finds when it searches n those 45 seconds.