Hi,
Tried the new blynk app with video streaming widget, the following needs to be done in order to view the feed as per the blynk docs.
BLYNK_CONNECTED() {
// request the V1 value on connect
// for initial connect it will be default value 1
Blynk.sync(V1);
}
BLYNK_WRITE(V1)
{
// here you get default value 1
int bulbValue = param.asInt();
handle(bulbValue);
}
It was throwing an error as “sync”, so I checked for keywords and changed it to…
BLYNK_CONNECTED() {
// request the V1 value on connect
// for initial connect it will be default value 1
Blynk.syncVirtual(V1);
}
BLYNK_WRITE(V1)
{
// here you get default value 1
int bulbValue = param.asInt();
handle(bulbValue);
}
…
and there’s another error.
“exit status 1
‘handle’ was not declared in this scope”
esp32_camera_mjpeg:180:21: error: ‘handle’ was not declared in this scope
handle(bulbValue);
…
guys please look into this, I’m trying to stream the video on local server now but ultimately globally.