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

Echo Virtual Pin usage


#1

Hi,
I’m making some test with Amazon Echo. I’m using IFTTT to easily connect the Blynk with Echo.

I connected a switch using 0 / 1 and is working correctly. I can swich on / off a device.

Now I wolud like “trigger” a MENU where I got differente options. Every option move the RGB light to a different color:

Like
1 White
2 Orange
3 Green
4 Red

How can send correctly the 1,2,3 by IFFT? is somethink I can do?

I used this setting:

URL:http://blynk-cloud.com:8080/TOKEN/pin/V10
METHOD: PUT
CONNECT TYPE: application/json

BODY… I tried [“2”] but not worked. What is the correct sintax?


#2

You don’t need PUT with Blynk, use GET as per https://blynkapi.docs.apiary.io/#reference/0/write-pin-value-via-get/write-pin-value-via-get


#3

Hi Costas,
thank you!

What about the body part?

Is it right write [“2”] in order to select the item #2 in a menu or there is a different sintax?
Thank you


#4

You don’t need a body. Send the menu item number in the virtualWrite().


#5

Or in the API call.


#6

Thank you Costas,
I used the API GET mode and works perfectly. In my case the url is:
http://blynk-cloud.com/XXXXXXXTOKENXXX/update/V10?value=2; where 2 is the option to move on white color.