Add LastCommand struct to multicast packet proposal

Need to define rig/amp/tuner control command formats -- do not intend on using limited rigctld format
https://github.com/Hamlib/Hamlib/issues/695
pull/712/head
Mike Black W9MDB 2021-05-22 16:55:18 -05:00
rodzic d6b54f491e
commit 5056982375
3 zmienionych plików z 20 dodań i 5 usunięć

Wyświetl plik

@ -64,7 +64,11 @@ Example JSON
"LowFreq": 14000000,
"HighFreq": 14250000
},
LastCommand {
"ID": "MyApp 123",
"Command": "set_freq VFOA 14074000".
"Status": "OK"
},
"PTT" : false,
"Split": true,
"SatMode": false,
@ -77,7 +81,6 @@ Example JSON
"Seq": 1,
"__comment_crc__": "32-bit CRC of entire JSON record replacing the CRC value with 0x00000000",
"ErrorMsg": "OK",
"LastCommand": "Last command executed",
"CRC": "0x00000000"
}
@ -119,6 +122,11 @@ namespace HamlibMultiCast
public double LowFreq;
public double HighFreq;
}
LastCommand {
public string ID; // an application name plus sequence number recommended
public string Command;
public string Status;
}
public string ID;
public List<VFO> VFOs { get; set; }
public bool PTT;
@ -129,7 +137,6 @@ namespace HamlibMultiCast
public string Version;
public string Status;
public UInt32 Seq;
public string LastCommand;
public string CRC;
public SpectrumClass Spectrum { get; set; }
public string ErrorMsg;

Wyświetl plik

@ -32,6 +32,11 @@ namespace HamlibMultiCast
public double LowFreq;
public double HighFreq;
}
public class LastCommand {
public string ID;
public string Command;
public string Status;
}
public string ID;
public List<VFO> VFOs { get; set; }
public bool Split;
@ -40,7 +45,6 @@ namespace HamlibMultiCast
public string App;
public string Version;
public UInt32 Seq;
public string LastCommand;
public string CRC;
public SpectrumClass Spectrum { get; set; }
}

Wyświetl plik

@ -38,6 +38,11 @@
"LowFreq": 14000000,
"HighFreq": 14250000
},
"LastCommand": {
"ID": "MyApp 123",
"Command": "set_freq VFOA 14074000",
"Status": "OK"
},
"Split": true,
"SatMode": false,
@ -47,7 +52,6 @@
"Version": "20210520",
"__comment_seq__": "Seq is 1-up sequence number 32-bit -- wraps around to 1 from 2^32-1",
"Seq": 1,
"LastCommand": "set_freq VFOA 14074000",
"__comment_crc__": "32-bit CRC of entire JSON record replacing the CRC value with 0x00000000",
"CRC": "0x00000000"
}