An Android library that can connect to a Bluetooth LE device, download dump logs and upload them to the Memfault console.
The device should contain characteristics defined in the Memfault documentation.
val memfaultBleManager = MemfaultBleManager()
//Receive status and data
memfaultBleManager.state.collect {
}
//To start
viewModelScope.launch {
memfaultBleManager.connect(context, device)
}
//When finished
memfaultBleManager.disconnect()
The library is available on Maven Central repository. Add it to your project by adding the following dependency:
implementation 'no.nordicsemi.android:memfault:1.0.2'
Application under the hood uses:
- BLE Library - for managing BLE connection and reading data from the remote device.
- MemfaultCloud Android - for uploading chunks to the cloud.