Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 396 Bytes

Widgets.md

File metadata and controls

17 lines (14 loc) · 396 Bytes

Widgets

Bridge

Bridge can be used for Device-to-Device communication. You can send digital/analog/virtual write commands from one device to another, knowing it's auth token.

// Bridge widget on virtual pin 1
WidgetBridge bridge1(1);
...
bridge1.setAuthToken("OtherAuthToken");
...
bridge1.digitalWrite(9, HIGH);
bridge1.analogWrite(10, 123);
bridge1.virtualWrite(1, "hello");