const device = new V5SerialDevice(navigator.serial);

Configuration

PropertyDefaultPurpose
autoReconnecttrueAllow reconnect behavior.
autoRefreshtruePoll device state periodically.
pauseRefreshOnFileTransfertrueAvoid status polling during transfers.

State

isConnected, isV5Controller, brain, controllers, devices, isFieldControllerConnected, matchMode, and radio.

Methods

MethodResult
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.
View source