gablau / node-red-contrib-blynk-iot

Blynk IoT / Blynk 2.0 library implementation for Node-RED using TLS
MIT License
17 stars 7 forks source link

BLYNK_WRITE not triggered on Device #13

Open camphamp opened 10 months ago

camphamp commented 10 months ago

I would like to use my Node-Red dashboard to control a Blynk IOT ESP32 that is connected through Bklynk.cloud.

I installed the blynk-iot Node-Red library and connected using the 3 required identifiers: Template ID, Template Name and Auth Token (same token associated with the ESP32 hardware).

I created a Node-Red dashboard that attempts to mimic my existing Blynk App in functionality and appearance.

However, where my old Blynk App widgets receive data changes in an event-driven manner, the node-red-contrib-blynk-iot requires polling with the “sync” node for data to flow in for display.

Additionally, when I change a virtual pin value, say pin V2 from 300 to 350 using a slider widget on the node-red dashboard, this change of value does not trigger the BLYNK_WRITE callback function to run on the ESP32. The value is changed on the blynk-cloud server and the value is propagated for display on both the APP and the dashboard interfaces, but the change event is not triggered on the device. Project Setup Microcontroller Device:

ESP32 DEV Module Blynk 1.3.2 - Arduino lib with these Blynk #defines:

    #define BLYNK_TEMPLATE_ID “XXXXXX”
    #define BLYNK_TEMPLATE_NAME “Quickstart Template”
    //#define BLYNK_AUTH_TOKEN “XXXXXXXXXXXXXXXXX”

    #define BLYNK_FIRMWARE_VERSION “0.1.0”
    #define BLYNK_PRINT Serial
    #define APP_DEBUG
    #define USE_ESP32_DEV_MODULE
#include “BlynkEdgent.h”

2 User Interfaces: iPad Air

Blynk IOT App 3.6.6 (1) on iOS 17.1.1 via blynk.cloud (ny3) Node-Red Dashboard

node-red-contrib-blynk-iot1.0.0 on node-red 3.0.2 on node.js 16.20.2 on Raspbian GNU/Linux 11 (bullseye) on a pi4