diff --git a/app/src/main/java/com/geeksville/mesh/service/MeshService.kt b/app/src/main/java/com/geeksville/mesh/service/MeshService.kt index e97ab60aa..20782fd6b 100644 --- a/app/src/main/java/com/geeksville/mesh/service/MeshService.kt +++ b/app/src/main/java/com/geeksville/mesh/service/MeshService.kt @@ -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) */