BLYNK
HOME       📲 GETTING STARTED       📗 DOCS       ❓HELP CENTER       👉 SKETCH BUILDER

Blynk webhook command for analog value

#1

Hi,
I try to use the url commands with IFTTT
The command : http://ipadressblink/my token/v1
With PUT method
Application/json content type
And [“250”]
Works a little bit.
The addressable led strip link to this analog pin change of colour to red
0 no light 255 full red
But I don’t find the command to set the 3 colours of the led. I only command the first one red…
How can I command the all “sub led”?
Thank in advance

0 Likes

#2

Can you share your code for the LED?

I would think that you would just use the incoming value for each

BLYNK_WRITE(V1)
{   
  int value = param.asInt(); // Get value as integer

 analogWrite(redPin, value);
analogWrite(bluePin, value);
analogWrite(greenPin, value);
}
0 Likes

#3

You haven’t really described the problem very well, but I think you may be trying to send multiple values in the same IFTTT command (R, G & B colours).
If so then take a look at this:

BTW, it’s usually better to use PUT rather than GET.

If you aren’t trying to send multiple values in the same IFTTT command then I’d suggest you clarify your issue.

Pete.

0 Likes

#4

Hi
I try your proposal
But with IFTTT I think is not the same Frame


Find the sample below

0 Likes

#5

Sorry, I’m not really certain what you mean by “frame”.
But, you’re still using PUT rather than GET.

Pete.

0 Likes

#6

Hi
The frame is the Text
I test GET and the other methods of IFTTT and it’s don’t work.

0 Likes

#7

With a internet explorer this command works
http://139.59.206.133/mytoken/update/V1?%20value=255&value=255&value=255

But I don’t find how to send the same command with IFTTT by webhook…

0 Likes

#8

So this browser example uses the syntax for GET.
Put this in the URL field in IFTTT:

Change the method to GET and leave the body field empty.

Pete.

1 Like

#9

Hi
It’s works.
Thanks a lot.
I put http://139.59.206.133/mytoken/update/V1?%20value=255&value=255&value=255
With this other parameters in IFTTT like this…


And it’s works.

Best regards

2 Likes