ConsoleTransportInstance
Defined in: console-sdk/src/transport/types.ts:153
A live transport instance — the object a ConsoleTransport factory returns. All per-device operations are keyed by DeviceId; a transport instance manages N concurrent links (multi-console is the default model, not a variant).
Field-proven behaviors (connect dedupe, connect timeout with cancellation to avoid phantom connections, the disconnect fallback ladder, the Android permission matrix, MTU request 517, write with/without-response fallback, notify-on-new-device-only scan surfacing, availability TTL) live inside implementations as documented contracts — never as consumer choreography.
Methods
Section titled “Methods”connect()
Section titled “connect()”connect(
deviceId,opts):Promise<TransportLink>
Defined in: console-sdk/src/transport/types.ts:159
Resolves when GATT is discovered and MTU/priority are negotiated.
Parameters
Section titled “Parameters”deviceId
Section titled “deviceId”timeoutMs
Section titled “timeoutMs”number
Returns
Section titled “Returns”Promise<TransportLink>
disconnect()
Section titled “disconnect()”disconnect(
deviceId):Promise<void>
Defined in: console-sdk/src/transport/types.ts:164
Tear down the link to one device. A link closed this way never reports TransportDelegate.onLinkDown.
Parameters
Section titled “Parameters”deviceId
Section titled “deviceId”Returns
Section titled “Returns”Promise<void>
dispose()
Section titled “dispose()”dispose():
Promise<void>
Defined in: console-sdk/src/transport/types.ts:176
Full teardown; called on provider unmount.
Returns
Section titled “Returns”Promise<void>
permissionStatus()
Section titled “permissionStatus()”permissionStatus():
Promise<BlePermissionStatus>
Defined in: console-sdk/src/transport/types.ts:172
Read the current permission state without prompting.
Returns
Section titled “Returns”Promise<BlePermissionStatus>
requestPermissions()
Section titled “requestPermissions()”requestPermissions():
Promise<BlePermissionStatus>
Defined in: console-sdk/src/transport/types.ts:174
Request the platform permission set; idempotent and safe to call repeatedly.
Returns
Section titled “Returns”Promise<BlePermissionStatus>
startScan()
Section titled “startScan()”startScan(
filter):Promise<void>
Defined in: console-sdk/src/transport/types.ts:155
Begin scanning; matching advertisements arrive via TransportDelegate.onDeviceSeen.
Parameters
Section titled “Parameters”filter
Section titled “filter”Returns
Section titled “Returns”Promise<void>
stopScan()
Section titled “stopScan()”stopScan():
Promise<void>
Defined in: console-sdk/src/transport/types.ts:157
Stop scanning. Idempotent.
Returns
Section titled “Returns”Promise<void>
write()
Section titled “write()”write(
deviceId,bytes,opts?):Promise<void>
Defined in: console-sdk/src/transport/types.ts:166
Write bytes to a connected device. response selects a with-response GATT write.
Parameters
Section titled “Parameters”deviceId
Section titled “deviceId”Uint8Array
response?
Section titled “response?”boolean
Returns
Section titled “Returns”Promise<void>