SDKC++ SDK

Migration

Exception-category and runtime behavior changes for upgrading Exo SDK from 1.3.0 to 1.4.0.

Current version · 1.4.0

Migration

Upgrading from Exo 1.3.0 to 1.4.0

Install Exo 1.4.0 with Core 1.8.0 from the installation guide. Update any pinned product and Core versions; rebuild C++ consumers with the new matching libraries. Existing device selection, telemetry and haptics calls keep the same API.

From Exo 1.2.0 to 1.3.0: subscription error reporting and background waits

Exo 1.3.0 with Core 1.7.0 contains the subscription error-reporting fix. Older versions isolate callback exceptions but can leave business-callback or sample-decoder failures unreported. Exo 1.3.0 reports the failure and continues delivering later samples.

C++ writes the error detail to stderr. Ensure the application or host retains standard error output. Subscription APIs and configuration stay the same; the fix adds no dependencies.

If your application copied an asynchronous flow that calls join() only after output consumption ends, observe data consumption and the background join() result concurrently. Cancel pending data waits when the background run ends, preserve its original failure, and complete stop, the same join, and close on success, error, and cancellation. Silence or connection recovery alone does not mean the background run has ended. See Runtime modes.

Upgrading from 1.0.0 to 1.1.0

The matched pair for this historical upgrade is Exo 1.1.0 with Core 1.5.0. Exo-specific device selection, telemetry reads, haptics, and startup APIs are unchanged. C++ applications must update exception handling, replace matching Core/Exo deliverables, rebuild, and validate automatic reconnection and shared-serial recovery.

Update exception handling

Shared APIs no longer classify every lifecycle or unavailable-feature failure as WorkflowError. Invalid lifecycle timing reports LifecycleError, while a capability unavailable on the current device or configuration reports UnavailableFeatureError. Add both handlers if existing code catches only WorkflowError, and retain the distinction between invalid timing and missing capability.

Replace matching packages and rebuild

Replace the Exo 1.1.0 and Core 1.5.0 headers, libraries, CMake packages, and Conan packages together. Clear CMake state, object files, static libraries, and plugins before a full rebuild so no older native library remains loaded.

Validate automatic reconnection and shared serial

The SDK advances automatic reconnection independently of continuous update() calls or runners. When Exo and Glove share a serial link, it restores the connection, refreshes component state, and clears stale connection errors after recovery or a successful restart.

For a manual scheduler, call sleep() on every update() result. Do not gate it on has_next_task(): that field only reports periodic deadlines, while event-driven work may not appear in it. Yield briefly after SleepResult::no_tasks.

Configure subscription delivery when needed

Default subscriptions remain compatible. To control callback backlog and delivery rate, call ReadChannel<T>::with_config() before subscribing and choose SubscriptionConfig::latest(max_rate_hz) or SubscriptionConfig::fifo(capacity, max_rate_hz). This does not change latest(), next(), existing subscriptions, or SDK computation rate.

Migration checklist

  • Catch LifecycleError and UnavailableFeatureError
  • Replace Exo 1.1.0 and Core 1.5.0 deliverables, clear the build tree, and rebuild fully
  • Do not treat continuous update() calls as a requirement for automatic reconnection
  • Call sleep() after every manual update() and do not gate it on has_next_task()
  • Choose latest or bounded fifo delivery for callbacks when needed
  • Test shared-serial disconnect, recovery, and stale-error cleanup on real composite hardware
  • Retest telemetry, status, and haptics after recovery