For this project I am using two raspberry pi pico w modules.
The one is reading the light intensity from pin A0 using a photoresistor coupled with a 12kohm resistor (everything is working as it should, no problems whatsoever at this point) I am getting values on Serial Monitor max at 1023 and min at 0.
The second pico w is in another room and should turn a build in LED on when a certain threshold of light intensity is reached (in my case it is 550) direct reading no conversion for the simplicity purpose. I have no idea whatsoever how to send and receive this event.
I found some code online for Server and Client but I do not understand most of it. Any help is much appreciated thanks
Can you be more precise? I read your answer, but still cannot understand how to send for example a bool lightOn {true} to the other microcontroller so it lights up the LED.
I saw this video a couple of times I know how to connect Client and Server to my WiFi network, but I still did not figure out the communication part. (109) Pi Pico W with the Arduino IDE | Using WiFi - YouTube
In the video he is using only one controller and web interface. I have a slightly different case
Maybe try a UDP broadcast instead of TCP client / server..
Every so seconds broadcast the temp to the local broadcast address..
Any system listening will get it..
UDP is not guaranteed, so possible to miss a packet and some consideration can be taken if needed..
But in this case, no big deal, get it on the next shot..
I have looked at the link you sent me and still can not implement it. In the link there is only client part. I am confused right now. Any other advices how to make it?