Blynk.virtualWrite not sending Vpin as string in IFTTT webhook

I’m running the example sketch Web Hook GET for Wemos D1 in which I’m sending to the widget the URL in order to trigger IFTTT action.
In the IFTTT project I’m switching ON a Sonoff appliance and it has been fully tested by triggering alone as https://maker.ifttt.com/trigger/Switch_It_On/with/key/My_Key_here.
In some examples (like in this one) I have seen that the full URL is transferred to the blynk webhook widget through the virtual pin as:
Blynk.virtualWrite (V0, “https://maker.ifttt.com/trigger/Switch_It_On/with/key/My_Key_here”);

I set my Android widget with V0 and tested following options:

a) Blynk.virtualWrite(V0, “https://maker.ifttt.com/trigger/Switch_It_On/with/key/My_Key_here”);
in the widget the URL /V4/ + GET + application /json => (it does not work)

b) Blynk.virtualWrite (V0, “Switch_It_On”);
in the widget the URL https://maker.ifttt.com/V0/with/key/My_Key_here + GET + application /json => (it does not work)

The example says…

App project setup:
WebHook widget on V0, method: GET, url: /pin/

Have you tried this?

Pete.

a) Blynk.virtualWrite(V0, “https://maker.ifttt.com/trigger/Switch_It_On/with/key/My_Key_here”);
in the widget the URL /V0/ + GET + application /json => (it does not work)

b) Blynk.virtualWrite (V0, “Switch_It_On”);
in the widget the URL https://maker.ifttt.com/V0/with/key/My_Key_here + GET + application /json => (it does not work)

c) Blynk.virtualWrite (V0, HIGH);
in the widget the URL https://maker.ifttt.com/Switch_It_On/with/key/My_Key_here + GET + application /json => it works, but in this case I cannot find any real sense to V0. If I wanted to trigger any different action (f.i Switch_It_Off) I could not use the widget.

I have been reviewing other similar examples in the documentation as well as many IFTTT sites, but the only way I could manage it working was c).

How should I use V0 if I need to pass different actions to IFTTT in my sketch?
What’s it the right configuration on Blynk webHook?

yes, I tested it on case a)
(sorry in my initial post there was a typing mistake I meant /V0/ instead of /V4/.
My apologies…

Hi Pete
Now I understand after reading your reply !!
I was confused about /pin/

I was thinking in terms of /V0/ as a var, but you refer to literal “/pin/” wording.
Now it is shown Green.

Many thanks for your great and quick support.

1 Like