I try to start a new topic related to my easyrelaymod :
Hi again, I'm experiencing problems defining 4 different Esp8266EasyIoTMsg structures.
With just two of them it works flawlessly; I can send messages and update state as expected. As soon as I add even a third Esp8266EasyIoTMsg console output starts to get garbled.
Is there any limit on the number of Esp8266EasyIoTMsg I can use? The sketch size does not seem to be the problem.
Thanks in advance for your help
EDIT: I've seen that in thermostat sketch you call Esp8266EasyIoTMsg lots of time... but it runs on an Arduino Mega... could it be a cpu related problem ? I'm using an Arduino Nano.
cdj wrote: I try to start a new topic related to my easyrelaymod :
Hi again, I'm experiencing problems defining 4 different Esp8266EasyIoTMsg structures.
With just two of them it works flawlessly; I can send messages and update state as expected. As soon as I add even a third Esp8266EasyIoTMsg console output starts to get garbled.
Is there any limit on the number of Esp8266EasyIoTMsg I can use? The sketch size does not seem to be the problem.
Thanks in advance for your help
EDIT: I've seen that in thermostat sketch you call Esp8266EasyIoTMsg lots of time... but it runs on an Arduino Mega... could it be a cpu related problem ? I'm using an Arduino Nano.
Yes, in my case I'm using Arduino mega and 5 switches. Maybe there is problem with RAM size. Also try to increase serial buffer size in SoftwareSerial library. Sometimes there's not enough RAM. Try also to disable DEBUG. It consumes additional RAM.
No man, i need Arduino because there are 4 input sensors that tell me if you turn on the light by physical switches. Please tell me if there's other way to change an easyiot switch state from Arduino....
Thanks
Dario
I call Esp8266EasyIoTMsg only when i need and not in declaration. Mr. EasyIOT it works... it's not necessary to put it in declaration... also in the middle of code it works !)
Great ! really happy ! Believe me after months of frustrating time spent, this is fantastic !!!