I attempted to follow the Webhook example in the blynk docs folder and found that it wasn’t behaving as I had expected. I created a webhook identical to this one http://docs.blynk.cc/images/webhook_settings.png using “http://api.sunrise-sunset.org/json?lat=33.3823&lng=35.1856&date=2016-10-01” as the URL. My arduino code contained the example,
BLYNK_WRITE(V0){
String webhookdata = param.asStr();
terminal.println(webhookdata);
terminal.flush();
}
The problem is whenever I tried to call the Blynk,virtualWrite(V0,1) function the BLYNK_WRITE(V0) function wouldn’t actually run. I then tried to assign a blynk button to V0 to trigger it but instead of running the webhook it simply put the buttonstate (1,0) into the param.asStr() function.
What do I have to do differently to initiate the acquisition of data using the webhook widget?