Hi!
I’m experimenting with the new Blynk, and I see first I must create templates, then create the devices which must belong to one of the above templates. So far so good. For my use case scenario, I thought it would make sense to create a template for each MCU type I use, like ESP8266, ESP32 etc.
In my projects I always use the same virtual pins for all devices to get some basic data, like:
// VIRTUAL PINS - ADMIN
#define V_UPTIME V113 // uptime in hours
#define V_VCC V115 // vcc in volts
#define V_RAM V116 // free ram (heap)
#define V_DBM V117 // wifi signal strength
#define V_SET_TYPE V118 // set device type
#define V_SEND_RTC V119 // sends device rtc value
#define V_RESTART_CAUSE V120 // sends device last restart cause (fw update, watchdog, brownout, manual reset, etc)
#define V_RESTART V121 // restart button
#define V_MAC V122 // device mac address
#define V_TERMINAL V123
#define V_UPDATE_NAME V124 // updates device name
#define V_UPDATE_TOKEN V125 // updates device token in eeprom
#define V_GET_UPDATE V126 // OTA firmware update
#define V_MESSAGE V127 // last message from device
so, it seemed useful to create all these datastreams for the template, because this is common with all devices. But when I add a new device, I would like to also create dedicated datastreams for each individual device. How can I do this? Or, if it is not possible to do, what is the “normal” way to do it, for example 10 individual esp8266 sonoff devices which run very different tasks? I have to create new template for each device separately?
Thanks!