refactor: add user.id as unique mqtt client identifier

This commit is contained in:
andrekir 2023-12-27 19:48:40 -03:00
parent 55a0714ee7
commit f73e7fd301
5 changed files with 12 additions and 36 deletions

View file

@ -1376,7 +1376,7 @@ class MeshService : Service(), Logging {
with(message) {
when (payloadVariantCase) {
MeshProtos.MqttClientProxyMessage.PayloadVariantCase.TEXT -> {
mqttRepository.publish(topic, text, retained)
mqttRepository.publish(topic, text.encodeToByteArray(), retained)
}
MeshProtos.MqttClientProxyMessage.PayloadVariantCase.DATA -> {