Configuration
| Property | Default | Purpose |
|---|---|---|
autoReconnect | true | Allow reconnect behavior. |
autoRefresh | true | Poll device state periodically. |
pauseRefreshOnFileTransfer | true | Avoid status polling during transfers. |
State
isConnected, isV5Controller, brain, controllers, devices, isFieldControllerConnected, matchMode, and radio.
Methods
| Method | Result |
|---|---|
connect(connection?) | Connect and initialize state. |
disconnect() | Close the current connection. |
dispose() | Stop timers and permanently clean up the instance. |
reconnect(timeout?) | Reconnect, waiting forever when timeout is 0. |
refresh() | Refresh high-level device state. |
mockTouch(x, y, press) | Send a brain touch event. |