Hi all
Firstly apologies for asking a Node-Red question in the ESPEASY forum but I think many people here are familiar with both
I'm trying send a command from Node-Red to turn an ESP8266 gpio pin on/off
I know how to do it in MQTT but I want to send the command using either UDP or http
If I type "http://192.168.1.150/control?cmd=gpio,4,1" into my browser it works.
What nodes do I need to configure to get this result from Node-Red and how should they be configured.
Many Thanks
Node Red for GPIO control
Moderators: grovkillen, Stuntteam, TD-er
Re: Node Red for GPIO control
OK figured it out myself
http request node set for PUT with URL http://192.168.1.150/control?cmd=gpio,4,1
http request node set for PUT with URL http://192.168.1.150/control?cmd=gpio,4,1
Re: Node Red for GPIO control
It should also work with a GET, as that is what a browser does.Affinite wrote: ↑28 Mar 2021, 18:33 http request node set for PUT with URL http://192.168.1.150/control?cmd=gpio,4,1
/Ton (PayPal.me)
Who is online
Users browsing this forum: No registered users and 22 guests