Skip to content

NordicSemiconductor/Android-Memfault-Library

Repository files navigation

Android Memfault Library

An Android library that can connect to a Bluetooth LE device, download diagnostics data and upload them to the Memfault console.

The device should contain characteristics defined in the Memfault documentation.

Example usage

val manager = MemfaultDiagnosticsManager.create(context)

// Receive status and data:
manager.state.collect {
    // [...]
}

// Connect and start observing diagnostics data:
manager.connect(peripheral, centralManager) // Using Kotlin BLE Library
// or
manager.connect(context, device) // Using the legacy code

// When finished:
manager.disconnect()

Documentation

Dokka documentation can be found here.

Application

Get it on Google Play

Welcome screen Scanner Diagnostics

Library

The library is available on Maven Central repository. Add it to your project by adding the following dependency:

implementation 'no.nordicsemi.android:memfault-observability:2.0.0'

Dependencies

Application under the hood uses:

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

About

An Android library for sending heap dumps to the Memfault cloud.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •