What do you mean by port?
Sending a 0 to a virtual pin will do just that, set the virtual pin to 0. What happens after that will depend on what is in the code.
To send a pulse, you will need to make it so when you send a 0 or 1 to the virtual pin what ever action you need to occur will, and then set the virtual pin back to the state you want.
For example, this is how I use it when activating my garage door opener. Sending a value of 1to the virtual pin with Google Assistant.
BLYNK_WRITE(V20)
{
int value = param.asInt();
if (value == 1)
{
Serial.println("Garage Opener Activated");
digitalWrite(led_pin, HIGH);//Active High Relay
timer.setTimeout(1000L, []() {
digitalWrite(led_pin, LOW);
Blynk.virtualWrite(V20, 0);
}); // END Timer Function
}
}
So in this example I am controlling virtual pin V43 which is the soffit light button on my blynk app - clearly make sure your button on the blynk app works first!!!
So I use the phrase ‘soffit lights on’ then a webhook to the public IP then your token and pin as shown
the method is ‘PUT’
COntent type is application/JSON
and the body is [“1”] so this turns
then you creat another applett to turn off ie changing trigger wording and put a 0 in the body.
Dont forget to save your applett and make sure it is turned on.
I also do this with a slider and alexa for a lounge dimmer just have an applet for 10, 20, 30 and so on. Then when you say trigger lounge 30 ie get 30% power - simples!!! and you see the slider move on the app.
You’re better using GET rather than PUT with IFTTT.
Also, when you test the URL in your browser you should use the IP address not blynk-cloud.com as there may be an issue with the IP address you’re using and you’d never know.
I have the IFTTT stopped working. Last time it started 2 months ago and everything worked and now with the same settings, it does not work.
Anyone else has such problems?