From my experience, it appears that a NODEMCU (ESP8266) can support up to 10 devices. However, there seems to be varying information regarding this, with some sources claiming a maximum of 3, while others suggest only 2 devices can be connected.
I was able to connect up to 9 devices successfully. However, whenever I attempted to add more, Alexa seemed unable to discover them. Interestingly, reverting back to the initial setup of nine devices, everything appeared to operate smoothly again. The issue seems to occur somewhat randomly.
Despite my efforts, including altering the fauxmoesp.h file to set the maximum devices to 30, rebooting my router, and disconnecting other smart devices, I was unable to resolve the issue. I'm keen to understand what might be causing this. Does anyone have any insights?
It is probably limited due to available memory. AFAIK each device consumes some RAM and your probably running out of it at 10 devices.
Try using ESP.getFreeHeap(); in your code to return the available heap space.
Thank you for engaging with the discussion. I have made the adjustments as suggested, and the stability of the free heap is notably consistent. Here is the sequence of the free heap values:
Upon reducing the number of devices to 3, there wasn't a significant variation observed in the free heap's stability. So, it appears the number of devices doesn't greatly impact the heap.
Does free memory remain the same after Alexa discovery?
I only suggested that memory was probably the cause because of this that suggests a max of 10 devices due to memory in its readme.