Error connect blynk and node-red

The Blynk WS Contrib only allows you to select virtual pins.
However, if you want to manipulate/query digital pins you can, using the “http request” node and an API call.

This will update Pin D2 (the built-in LED on a NodeMCU) with the value of “0”

image

(becauee the LED is Active LOW, “0” turns it on and “1” turns it off). You obviously have to put your Authcode in there.

You query it with:

http://blynk-cloud.com/Authcode/get/D2

Pete.

@PeteKnight thanks for your help but it didn’t work
can you screenshot your page and explain it more
i assume there is nothing to change in my arduino code ??

@PeteKnight…thank you for your help
i did this earlier to read results from virtual pins
and i’m trying to connect ‘‘http request’’ to a ‘‘gauge’’ to see the temperature variation …any ideas ??

image

Not much to explain really, inject something into the http request node to trigger it, and for the one that queries the value, output the result to a debug node.

If your Blynk project was created when you were in a different country, or you’re using a Node-Red cloud server, then you may need to replace http://blynk-cloud.com with the IP address of the Blink cloud server where your project is.

Pete.

You’d need to provide more information.

Pete.

thanks very much @PeteKnight but it didnt work i can read data on my debug node but i cant send data

The results you’re showing in your debug window aren’t coming from the debug node in the screenshot, they’re coming from a debug node that you’ve renamed as “march”, which presumably in on another tab.

How are your http request nodes configured?

Pete.