Hi friends. is it possible to remove [" “] symbol from webhook get ? I just need the pin value in webhook get without [” "].
here is my sketch:
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
char auth[] = "GEraVZrPqUS3wMJnPJGuSUdCEAuVhtLP";
char ssid[] = "MikroTik Tesla";
char pass[] = "12345678";
char server[] = "10.5.51.5";
BLYNK_WRITE(V0)
{
String dat = param.asStr();
Serial.println("WebHook data:");
Serial.println(param.asStr());
Blynk.virtualWrite(V1, dat);
}
void setup()
{
// Debug console
Serial.begin(115200);
Blynk.begin(auth, ssid, pass, server, 8080);
// You can perform HTTPS requests even if your hardware alone can't handle SSL
// Blynk can also fetch much bigger messages,
// if hardware has enough RAM (set BLYNK_MAX_READBYTES to 4096)
//Blynk.virtualWrite(V0, "https://api.sunrise-sunset.org/json?lat=50.4495484&lng=30.5253873&date=2016-10-01");
}
void loop()
{
Blynk.run();
Blynk.virtualWrite(V0, "10.5.51.5:8080/1ba32e9c834340ed83a795c083c03c4a/get/V28");
}
the serial output:
WebHook data:
["56.4"]
WebHook data:
["56.9"]
WebHook data:
["56.9"]