SDKC++ SDK

Diagnostics & errors

Diagnose Exo C++ project configuration, discovery, data, control, and handle failures.

Current version · 1.4.0

Diagnostics & errors

The SDK advances automatic reconnection independently and refreshes component state and clears stale connection errors after recovery or a successful restart. Handle lifecycle failures as LifecycleError and unavailable features as UnavailableFeatureError instead of catching only WorkflowError.

CMake cannot find a component

Use the CMake toolchain from the installation instructions, resolve Exo and Core from the same delivery, and compile as C++17.

A device cannot be found or opened

Run discover_exos, verify port permissions and ownership, and set connection.port when multiple devices are connected.

No telemetry arrives

Check exo.start(), the active runtime driver, subscription lifetime, capabilities.telemetry, and device.health().

An Exo command fails

Catch qnbot::ExoControlError and read kind(), command(), device_code(), and detail(). Check haptics capability and use values in 0…100.

kind()Common causeRecovery
not_connectedThe device is disconnected or recoveringWait for the status channel to confirm connection; do not retry in a tight loop
invalid_lifecycleNot started, already stopped, or called in the wrong orderCheck domain and device lifecycle state
unsupported / unavailableFirmware or the device lacks the featureCheck capabilities
busy / timeoutThe device is busy or the command was not acknowledgedUse bounded waits and retries, and inspect connection state
protocol / device_rejectedInvalid response or rejected commandPreserve structured error details and the full log
transportSerial I/O failedCheck the port, cable, and permissions; wait for automatic recovery
cancelledStop or close cancelled the operationTreat it as normal lifecycle completion

Never reuse child handles after closing their parent; create a new Sdk, Exo, device, and channels.

Subscription callbacks and background failures

A try/except or try/catch around subscribe() does not receive later callback exceptions. The SDK reports callback and sample-decoder error details to stderr, identifying the subscription, topic, source, and applicable target. See Migration for version applicability and upgrade actions. The subscription continues delivering later samples. Fix the callback or unsubscribe outside it.

join() reports background runtime errors. Async applications must observe consumption and join concurrently, cancelling pending data waits when the background run ends early. Temporary silence and recoverable disconnection do not imply termination. See Runtime modes for cleanup on success, processing failure, and cancellation.