This time I’m doing tests with webhooks…
using this code in my project:
#define BLYNK_MAX_READBYTES 1024
BLYNK_WRITE(V0)
{
Serial.println("WebHook data:");
Serial.println(param.asStr());
}
BLYNK_WRITE(V10)
{
if (param.asInt())
{
//Blynk.virtualWrite(V0, "https://raw.githubusercontent.com/blynkkk/blynk-library/master/extras/logo.txt");
Blynk.virtualWrite(V0, "https://api.sunrise-sunset.org/json?lat=41.58491773&lng=1.612949&date=today");
}
}
I receive this:
[15062] <[14]o:[00]Pvw[00]0[00]https://api.sunrise-sunset.org/json?lat=41.58491773&lng=1.612949&date=today
[15206] >[14]o[1E|00|07]
[15206] >vw[00]10[00]0
[25162] <[06|00|02|00|00]
[25210] >[00|00|02|00|C8]
[32972] >[14]d[A8|00|07]
[32973] >vw[00]10[00]1
[32973] <[14]d[A8|00]Pvw[00]0[00]https://api.sunrise-sunset.org/json?lat=41.58491773&lng=1.612949&date=today
[33179] >[14]uV[00|07]
[33179] >vw[00]10[00]0
[43162] <[06|00|03|00|00]
[43262] >[00|00|03|00|C8]
But no data received even that trying in the explorer all seems working.
If I use the Blynk logo url, it works perfect…
V0 = webhook URL=/pin/ METHOD=GET CONTENT TYPE=application/json BODY=(Cant write nothing here using GET)
V10 = button
Searching in Blynk I found the same issue, it’s set as [SOLVED] but there is no solution inside… @Costas, did you help him by PM? [Solved] Webhook problem
Thanks!