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.
Im working on it in the last days, But i can´t do it!
Im working with one ESP8266, arduino nano and arduino relay. I want to control first the lights of my home.
I made a circuit with this elements and Im running the server on raspberry pi,
It works perfectly switching the relay by the web page and I can control the lights with my smartphone but the problem its that i want to still have my switches on the wall and I would modify the code adding this switches. I I would control this by adding a input on arduino, and a 5v switch.
In this post I read I have to:
Put this : Esp8266EasyIoTMsg msgRelay1(RELAY_1, V_DIGITAL_VALUE); (in my declaration)
and this : change the RELAY_1 state when I change the state of my switch and I have to send the changes to the server with : esp.send(msgRelay1)
can you explain my this please, I change the status of my relay but not the status on the server
I read you where using other relays, and the photo resistor to check the state. My English is not so good, i dont know if I want to build the same as you, i think no. In my case I will put the relay arduino and esp direct to the light (220 AC) and i will put 2 wires to my wall switch to attach an arduino input. (The arduino will have always the control of the light). And the arduino relay will be connected and disconnect by the arduino that will receive the order via serial (esp) or input (wall switch).
After the expanation ! Im reading your code and I think I have to put this
and correct me if I´m wrong I have to replace your (statusphotores1) with my variable i think boolean 0 or 1 its that correct? i cant write my sketch no I have to wait for some free time