info
Reports transport / popup status, not hardware data, and needs no device I/O of its own. Like every request method, the first call opens the popup and is answered only after the connection handshake completes — with no device connected yet, that means after the user picks and connects a device (bounded by a 60 s handshake timeout). Later calls in the same popup session are answered without device I/O once any request queued ahead of them settles (the connector sends one request at a time), and report ready: false / isAttached: false / transport: undefined if the device has since been disconnected.
Summary
Whereas getDeviceInfo returns hardware device metadata, info reports the popup's transport state. On an unsupported browser the popup shows an error screen and the request ends with time_out.
Signature
await dcent.info(): Promise<V1Response>
Request / Response
Request
const res = await dcent.info()
if (res.header.status === 'success') { /* bridge ready */ }
Response
{
"header": {
"version": "1.0",
"status": "success",
"response_from": "info"
},
"body": {
"command": "info",
"parameter": {
"transport": "usb",
"ready": true,
"isAttached": true,
"popupVersion": "2.0.8"
}
}
}
Response fields
| Field | Type | Description |
|---|---|---|
transport | 'usb' | 'ble' | undefined | Active transport kind. undefined when no device is connected. |
ready | boolean | Currently the same value as isAttached (the transport is connected). false when disconnected. |
isAttached | boolean | Whether a device is physically connected (transport.isConnected). Same meaning as getDeviceInfo's isAttached. |
popupVersion | string | Bridge popup version (e.g. "2.0.8"); "unknown" if unavailable. |
For device details (firmware, label, transport) use getDeviceInfo.