Transport Order
Configure whether the SDK uses local network or cloud first when sending parameter updates.
What This Module Does ?
Defines transport priority when you call setValue(): try local network, cloud, or a custom order—with automatic fallback if a route fails.
Use local-first for smart-home apps where users are usually on the same Wi-Fi (faster, lower latency). Use cloud-first for apps where users often control devices remotely.
Local transport requires populating availableTransports via Events and Subscriptions.
Expected outcome: Updates use the best available route without manual fallback in your app.
Common Workflows
Local-first (smart home)
import { ESPRMBase, ESPTransportMode } from "@espressif/rainmaker-base-sdk";
ESPRMBase.setTransportOrder([
ESPTransportMode.local,
ESPTransportMode.cloud,
]);

