Add MMDVM status JSON messages.

This commit is contained in:
Jonathan Naylor 2023-01-15 16:18:31 +00:00
parent 54d01ba7c5
commit b7761a4e8a
3 changed files with 30 additions and 5 deletions

View file

@ -1,6 +1,6 @@
{
"$defs": {
"mmdvm_state": {"type": "string", "enum": ["lockout", "idle", "d-star", "dmr", "ysf", "nxdn", "pocsag", "fm", "ax,25", "m17"]},
"mmdvm_mode": {"type": "string", "enum": ["lockout", "idle", "error", "D-Star", "DMR", "YSF", "NXDN", "POCSAG", "FM", "M17"]},
"dstar_callsign": {"type": "string", "minLength": 8, "maxLength": 8},
"dstar_extension": {"type": "string", "minLength": 4, "maxLength": 4},
"ysf_callsign": {"type": "string", "minLength": 10, "maxLength": 10},
@ -32,8 +32,8 @@
"MMDVM": {
"type": "object",
"timestamp": {"$ref": "#/$defs/timestamp"},
"state": {"$ref": "#/$defs/mmdvm_state"},
"required": ["timestamp"]
"mode": {"$ref": "#/$defs/mmdvm_mode"},
"required": ["timestamp", "mode"]
},
"D-Star": {