jacdac.cloud_adapter.client
Module Contents
Classes
Supports cloud connections to upload and download data. |
- class jacdac.cloud_adapter.client.CloudAdapterClient(bus: jacdac.bus.Bus, role: str)
Bases:
jacdac.bus.Client
- Supports cloud connections to upload and download data.
Note that f64 values following a label are not necessarily aligned.
Implements a client for the Cloud Adapter service.
- property connected: bool | None
Indicate whether we’re currently connected to the cloud server. When offline, upload commands are queued, and get_twin respond with cached values.,
- property connection_name: str | None
User-friendly name of the connection, typically includes name of the server and/or type of cloud service (“something.cloud.net (Provider IoT)”).,
- on_cloud_command(handler: jacdac.bus.EventHandlerFn) jacdac.bus.UnsubscribeFn
Emitted when cloud requests to run some action.
- on_change(handler: jacdac.bus.EventHandlerFn) jacdac.bus.UnsubscribeFn
Emitted when we connect or disconnect from the cloud.