WeMoS andRaspberryPi
Posted: Fri Apr 27, 2018 5:18 am
Hi, I am a newbie to WeMoS and esp8266. So, I created a PHP page that will read data sent from my wemos and store it in a database. I wrote the corresponding wemos (Arduino) code that will post data to the IP address of my raspberrypi . This is working fine.
Now I want to send data from raspberrypi to wemos. What I have is a text box. If the user enters 1, a light bulb switches on and if he enters 0 it switches off. I created the HTML and javascript codes for this and stored it in my Raspberry Pi. Now how would and in what format should I send this data to my wemos?
Thank You.
Now I want to send data from raspberrypi to wemos. What I have is a text box. If the user enters 1, a light bulb switches on and if he enters 0 it switches off. I created the HTML and javascript codes for this and stored it in my Raspberry Pi. Now how would and in what format should I send this data to my wemos?
Thank You.