Cm Sdk
Interface defining the core functionalities for the communication with Comodule modules. Provides methods to discover modules, manage connections, and interact with module properties and firmware.
Functions
Clears the local cache of the SDK.
Attempts to establish a connection with a module using its serial number and a private key.
Disconnects from the currently connected module, if any. Forgets the module and will not attempt to reestablish connection.
Discovers available Comodule modules within a specified timeout period.
Observes connection errors that occur while attempting to connect to modules.
Observes changes to the connection state with modules.
Observes the firmware information of the connected module.
Observes the status of firmware updates on the connected module.
Observes the values of all properties on the connected module.
Observes available properties that can be interacted with on the connected module.
Observes the value of a specific property on the connected module.
Sets the value of a property on the connected module.
Initiates a firmware update on the connected module, if available. After downloading the update, will start a foreground service.