Companion

Types

Link copied to clipboard
open class NodeNotFoundException(reason: String) : Exception
Link copied to clipboard
class NoDeviceConfigException(message: String = "No radio settings received (is our app too old?)") : RadioNotConnectedException

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The minimum firmware version we know how to talk to. We'll still be able to talk to 2.0 firmwares but only well enough to ask them to firmware update.

Functions

Link copied to clipboard
fun actionReceived(portNum: Int): String
Link copied to clipboard
fun changeDeviceAddress(context: Context, service: <Error class: unknown class>, address: String?)

Talk to our running service and try to set a new device address. And then immediately call start on the service to possibly promote our service to be a foreground service.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Just after boot the android OS is super busy, so if we call startForegroundService then, our thread might be stalled long enough to expose this Google/Samsung bug: https://issuetracker.google.com/issues/76112072#comment56