MemfaultDiagnosticsManager

Class responsible for managing connection with the remote IoT device which supports Memfault Diagnostic Service.

The manager connects to the device and uploads all downloaded chunks to the cloud.

Data can be emitted any time so the connection should be maintained as long as needed.

See also

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val state: StateFlow<MemfaultState>

The state of the manager.

Functions

Link copied to clipboard
open fun connect(context: Context, device: BluetoothDevice)
abstract fun connect(peripheral: Peripheral, centralManager: CentralManager)

Function used to connect to the selected Bluetooth LE peripheral.

Link copied to clipboard
abstract fun disconnect()

Disconnects the connected peripheral.