Skip to main content

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

FieldTypeDescription
transport'usb' | 'ble' | undefinedActive transport kind. undefined when no device is connected.
readybooleanDevice handshake complete and transport connected. false when disconnected.
isAttachedbooleanWhether a device is physically connected (transport.isConnected). Same meaning as getDeviceInfo's isAttached.
popupVersionstringBridge popup version (e.g. "2.2.8"); "unknown" if unavailable.
info

For device details (firmware, label, transport) use getDeviceInfo.