steve1
October 21, 2021, 12:05pm
73
Hi Dave,
I might be off base here as I’m very much learning this coding stuff myself but I think the latest version of the HTTP client needs to have a WIFI client declared eg client (WIFI client library needs to be included). The http.begin statement is then http.begin(client, server_path.c_str()).
Cheers
Steve
Dmitriy
October 21, 2021, 12:15pm
74
Dear all,
the webhook feature work in progress currently. Hopefully, within the next week (3 weeks in the worst case), we’ll be able to release it.
2 Likes
steve1
October 21, 2021, 12:37pm
75
Thanks for the update @Dmitriy . As you can see from this thread, it will be a popular addition.
Cheers
Steve
dksmc
October 21, 2021, 1:22pm
76
Yes I am looking forward to this. Will it be on the console as well as the app?
Hi David ,
I use this code and it works well for me
#include <ESP8266HTTPClient.h>
.
//************ Bridges *********************//
String server_name = "http://fra1.blynk.cloud/external/api/"; // for French server
String Auth1 = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; // token for the receiving device 1
.
timer.setInterval(5000L, read_some_data); // call every 5 sec
.
.
.
.
// Bridge function
void BridgeRead(String token, int virtual_pin, float value_to_send) {
String server_path = server_name + "get?token=" + token + "&v" + String(virtual_pin);
http.begin(client, server_path.c_str()); //ESP8266
int httpCode = http.GET(); //get info
payload = http.getString(); //Get the request response payload
http.end(); //Close connection
fuel_level=payload.toInt(); // int conversion
Blynk.virtualWrite(V5, fuel_level); // write to widget
}
void read_some_data() {
BridgeRead(Auth1, 64, fuel_level); // Token , vPin , value
}
@Blynk_Coeur do you declare the client
object elsewhere in your code?
Pete.
1 Like
#include <BlynkSimpleEsp8266.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
#include <WidgetRTC.h>
WidgetLED led1(V21);
#include <Adafruit_AHTX0.h>
Adafruit_AHTX0 aht;
WiFiClient client; // <------------------- `client` object
#define SrlBaud 57600
1 Like
How could I forget you are the NR. @PeteKnight
I was determined that I would got that route but with the Blynk2 not being seamless w NR in the beginning I sat back waiting for it to get sorted out (because it was above my head to contribute ) How is it working by now is there a different add on to install in NR or is the existing updated?
I’ll give @Blynk_Coeur ‘a code a shot this evening. Looks like it is what the compiler is looking for…
1 Like
Warning: I don’t use blynk edgent !
1 Like
You know of a potential conflict?
I don’t know, I never tried before .
I prefer to use hard-coding and arduinoOTA .
1 Like
GG07
October 22, 2021, 9:45am
85
Blynk Edgent and WebHooks do not like each other
Dmitriy
October 29, 2021, 11:10am
86
Webhooks are now should be available on the Web Console. There is a known validation issue, but it should work in general.
FREE plan - allows 1 webhook
PLUS - allows 5 wehooks
PRO - allows 10 webhooks
Limits could be changed based on further feedback.
2 Likes
GG07
October 30, 2021, 3:06am
87
Hi @Dmitriy , is this where I should find the webhook settings?
I can’t see webhook, no more developers section on the Web Console , am I wrong ?
1 Like
manage webhooks is forbiden , I can’t turn on
1 Like
John93
October 30, 2021, 4:13pm
92
@Blynk_Coeur can you tell me where can I find it please ?