This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Best way to send message to esp32 to change pin state
#4
Yaaa! little led on esp32 goes on and off When I use the switch on the RPI. Big Grin
I went with option 3
I used API over stream as I wanted to get in and out fast, I don't know if it was faster?
I have the Davis anemometer outputting mnea  @10hz to port 10110.
every second I get the value of Sensor.anchorlight via http/get.
then change the state of the pin on the esp32 to match.
It might be better to save the reading to a variable then just change pin if the value has changed.

Hey in the Openplotter GPIO tab I could not set the key to a sK spec key?
I could just get Sensor.* It would be nice if i could map to sK spec if it had a source that fit the use. For example Lights 
Thanks to tkurki for that nice light readSmile

For the most part mission success.
I can read/write winddata and control a light on a esp32 with no extra python code on RPI with openplotter via WiFi.
Reply


Messages In This Thread
RE: Best way to send message to esp32 to change pin state - by ddelorme - 2018-12-10, 06:01 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)