If V40 is assigned to a button in the app how and why should “Blynk.virtualWrite(V40,1);” trigger a Webhook widget that it is not assigned to? I don’t see that in the documentation.
Yes, it is.
This function is called on the hardware side if you press a button assigend to V40 in your app.
Thanks for your advice. I’ve tried this before, although the docs don’t mention it. Now i’ve changed my request to a test site: https://httpbin.org/get and tried your suggestion again, Doesn’t help. I’ve put it in like this;
Well, You asked how to trigger BLYNK_WRITE(){ } handler from code.The answer is syncVirtual(),and it works. The Blynk.virtualWrite() is not needed, as all it does is to send data (in your case it is"1") to server. It does not trigger BLYNK_WRITE()
I think your problem might be the place, where you declared the webhookdata variable. You declared it locally.
The list is in APP, the the device is working on the basis of Blynk library, where it may (should?) be declared… I don’t know, as I’ve never used Vpins that high…
Wait @Remco, are you trying to trigger BLYNK_WRITE() handler attached to Webhook’s Vpin? If so, then I must say, I’ve NEVER tried that. The syncVirtual() is working great, but it is with values, which are stored on server. How the Webhook works? I dunno…