Problem Statement: share information across multiple, dynamically- or statically-provisioned devices.
Note: With dynamically-provisioned devices, the Bridge widget isn’t feasible.
Proposed Solution: Global Virtual Pins (GVPs). Let’s assume there are 16 GVPs,
G0, G1, ... G15
The app / project would update a GVP and BLYNK_WRITE (or equivalent) would be invoked on each device associated with the app / project. Blynk.syncVirtual (or equivalent) would also be supported.
Use-case #1:
- Two dynamically-provisioned devices using the Device Tiles widget.
- Click on the “SETUP” tab. Note: The “SETUP” tab is intended to span all devices.
- Enter the authorization token for a cloud-based dashboard in a Text Input widget associated with G0.
- BLYNK_WRITE(G0) is invoked on each device to locally configure the authorization token.
Use-case #2:
- Dynamically provision a third device.
- Once connected, the device invokes Blynk.syncVirtual(G0).
- BLYNK_WRITE(G0) is invoked on the device to locally configure the authorization token.
Use-case #3:
(same as Use-case #1 only you update the SSID and password associated with all of the devices)
Alternatives? Any other suggestions in terms of how this sharing across multiple, dynamically- or statically-provisioned devices can be achieved? Maybe this is something Blynk has planned as part of the next major release?