Hi, i use terminal widget to see messages from Device1. Also, I send messages from Device2 to Device1 with the help of bridge to see its messages on the terminal which is linked to Device1. As I know, bridge is a device to device communication. There is no app side. So i thought both devices must be online. But on my project, I can send messages from Device2 to the terminal which is linked to Device1, even if Device1 is offline. It is something I want actually, but is it the normal procedure? (because in this case the comm is not device to device)
Additional info:
I open a bridge channel on V3 pin on Device2 and I send my message to V2 pin of Device1
bridge.virtualWrite(V2, message)
On sketch of Device1, terminal is linked to V2, I donât use an additional function as
The virtual All pin have their âvirtualâ representation on the Server.
All blynk devices are connected via server, so itâs not a true device <-> device communication AFAIK, but rather device <-> server <-> device. The blynk library on the device is responsible for being connected to the server and sync the state of its pins to match those on servers (and vice versa). So yeah, I believe you can read/write Digitak/Analog/Virtual pins even for a completely fictional device (i do that all the time).
Thanks, I had known that there is a server step between devices in the communication process, and virtual pin values are stored on the server. But i didnât know I could read or write virtual pins if the device status is offline. That was enlighting for me, thanks.
I know how to use the terminal widget, but i wondered if it was possible that device A puts a new line to device B terminal via the bridge while device B is offline
Assuming you have a terminal widget linked to V2 of DeviceB, you should create a bridge (sth. like my Bridge) on DeviceA first then call
myBridge.virtualWrite(V2, "message");
I have tested that you can see messages of DeviceA on terminal linked to DeviceB even if DeviceB is offline. I have not tested if ADD NEWLINE option changes anything or notâŚ