mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-02 05:04:37 -04:00
feat: add fromRadio client notification
This commit is contained in:
@@ -1257,6 +1257,9 @@ class MeshService : Service(), Logging {
|
||||
MeshProtos.FromRadio.QUEUESTATUS_FIELD_NUMBER -> handleQueueStatus(proto.queueStatus)
|
||||
MeshProtos.FromRadio.METADATA_FIELD_NUMBER -> handleMetadata(proto.metadata)
|
||||
MeshProtos.FromRadio.MQTTCLIENTPROXYMESSAGE_FIELD_NUMBER -> handleMqttProxyMessage(proto.mqttClientProxyMessage)
|
||||
MeshProtos.FromRadio.CLIENTNOTIFICATION_FIELD_NUMBER -> {
|
||||
handleClientNotification(proto.clientNotification)
|
||||
}
|
||||
else -> errormsg("Unexpected FromRadio variant")
|
||||
}
|
||||
} catch (ex: InvalidProtocolBufferException) {
|
||||
@@ -1477,6 +1480,11 @@ class MeshService : Service(), Logging {
|
||||
}
|
||||
}
|
||||
|
||||
private fun handleClientNotification(notification: MeshProtos.ClientNotification) {
|
||||
debug("Received clientNotification ${notification.toOneLineString()}")
|
||||
radioConfigRepository.setErrorMessage(notification.message)
|
||||
}
|
||||
|
||||
/**
|
||||
* Connect, subscribe and receive Flow of MqttClientProxyMessage (toRadio)
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user