Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 1.78 KB

README.md

File metadata and controls

43 lines (28 loc) · 1.78 KB

Android Memfault Library

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.

Example usage

val memfaultBleManager = MemfaultBleManager()

//Receive status and data
memfaultBleManager.state.collect {

}

//To start
viewModelScope.launch {
    memfaultBleManager.connect(context, device)
}

//When finished
memfaultBleManager.disconnect()

Application

Get it on Google Play

Library

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'

Dependencies

Application under the hood uses:

  1. BLE Library - for managing BLE connection and reading data from the remote device.
  2. MemfaultCloud Android - for uploading chunks to the cloud.