jacdac.cloud_configuration
Submodules
Package Contents
Classes
Connection and diagnostics information about the cloud connection. |
- class jacdac.cloud_configuration.CloudConfigurationClient(bus: jacdac.bus.Bus, role: str)
Bases:
jacdac.bus.Client
Connection and diagnostics information about the cloud connection. Implements a client for the Cloud Configuration service.
- property server_name: str | None
(Optional) Something like my-iot-hub.azure-devices.net if available.,
- property cloud_device_id: str | None
(Optional) Device identifier for the device in the cloud if available.,
- property connection_status: jacdac.cloud_configuration.constants.CloudConfigurationConnectionStatus | None
Indicates the status of connection. A message beyond the [0..3] range represents an HTTP error code.,
- property push_watchdog_period: int | None
If no message is published within given period, the device resets. This can be due to connectivity problems or due to the device having nothing to publish. Forced to be at least 2 * flush_period. Set to 0 to disable (default)., _: ms
- on_connection_status_change(handler: jacdac.bus.EventHandlerFn) jacdac.bus.UnsubscribeFn
Raised when the connection status changes
- on_message_sent(handler: jacdac.bus.EventHandlerFn) jacdac.bus.UnsubscribeFn
Raised when a message has been sent to the hub.