info
Reports the status of the DCENT Web Bridge (the popup/daemon layer), not the hardware device. Use it as a lightweight liveness/handshake probe before driving a flow.
Summary
Whereas getDeviceInfo returns hardware device metadata, info answers "is the bridge reachable and ready?". The exact body.parameter fields are bridge-defined; check header.status for reachability.
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"
},
"body": {
"command": "info",
"parameter": {
"transport": "usb",
"ready": true,
"isAttached": true,
"popupVersion": "2.2.8"
}
}
}
Response fields
| Field | Type | Description |
|---|---|---|
transport | 'usb' | 'ble' | undefined | Active transport kind. undefined when no device is connected. |
ready | boolean | Device handshake complete and transport 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.2.8"); "unknown" if unavailable. |
info
For device details (firmware, label, transport) use getDeviceInfo.