Fix node info field name: swVer is shown on reflector dashboard (v1.0.5)
This commit is contained in:
@@ -195,9 +195,11 @@ object MsgBuilder {
|
|||||||
return RcMessage(ReflectorProtocol.MSG_TG_MONITOR, w.toByteArray())
|
return RcMessage(ReflectorProtocol.MSG_TG_MONITOR, w.toByteArray())
|
||||||
}
|
}
|
||||||
|
|
||||||
/** MsgNodeInfo v2: JSON-строка с данными клиента (версия ПО и пр.). */
|
/** MsgNodeInfo v2: JSON-строка с данными клиента (версия ПО и пр.).
|
||||||
|
* Рефлектор вливает JSON в статус узла, дашборд показывает поле
|
||||||
|
* «swVer» (как у svxlink-узлов). */
|
||||||
fun nodeInfo(swInfo: String, swVersion: String): RcMessage {
|
fun nodeInfo(swInfo: String, swVersion: String): RcMessage {
|
||||||
val json = "{\"swInfo\":\"$swInfo\",\"swVersion\":\"$swVersion\"}"
|
val json = "{\"swInfo\":\"$swInfo\",\"swVer\":\"$swVersion\"}"
|
||||||
return RcMessage(ReflectorProtocol.MSG_NODE_INFO, BinWriter().str(json).toByteArray())
|
return RcMessage(ReflectorProtocol.MSG_NODE_INFO, BinWriter().str(json).toByteArray())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user