Webhooker problem

I try to read analog input and PIN state from teleduino using webhooker and integrate it with blink as a display of value.
I put:

"https://us01.proxy.teleduino.org/api/1.0/328.php?k={KEY}&r=getAnalogInput&pin=14 "

into webhhoker widget and further virtual pin value is to be displayed in Blynk. The teleduino request has json format by default (teleduino documentation), so it should work.

I use BlynkWRITE command on virtual pins in the arduino sketch and GET in webhooker - the example from blynk documentation

BLYNK_WRITE(V0){
String webhookdata = param.asStr();
Serial.println(webhookdata);
}

What goes wrong ??? It should be very simple

How big is the typical json data?

If it is quite large, try adding the following as the first line of your sketch:

#define BLYNK_MAX_READBYTES 2800

1 Like

Also - how do you trigger webhook widget? Please carefully read doc. You need to perform :

Blynk.virtualWrite(V0, 1)

to trigger webhook.

I trigger with Blynk.virtualWrite (V0, 1). In the webhooker widget GET function is active. Display reading frequency is PUSH. Here is the sketch. Sorry the documentation does not give a solution here. Here is the sketch.

define BLYNK_PRINT Serial
include SPI.h
include Ethernet.h
include BlynkSimpleEthernet.h
define BLYNK_MAX_READBYTES 2800

char auth[] = “KEY”;

BLYNK_WRITE(V0) {
String webhookdata=param.asStr();
Serial.println(webhookdata);
}

void setup(){
Blynk.virtualWrite(V0, 1);

Serial.begin(9600);
Blynk.begin(auth);
}
void loop()
{

You can’t do virtualWrite before Blynk.begin(auth);

Sorry. Nothing in display widget and serial monitor

Are you on Android as I don’t think Webhook has been implemented on iOS yet?

I’m on Android 5.1.1