diff --git a/README.multicast b/README.multicast index a37d51528..aad7de55b 100644 --- a/README.multicast +++ b/README.multicast @@ -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 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; diff --git a/bindings/csharp/multicast/multicast.cs b/bindings/csharp/multicast/multicast.cs index 98c8d5ffe..8d6baa6b0 100644 --- a/bindings/csharp/multicast/multicast.cs +++ b/bindings/csharp/multicast/multicast.cs @@ -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 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; } } diff --git a/bindings/csharp/multicast/test.json b/bindings/csharp/multicast/test.json index 1f2480499..6f4365671 100644 --- a/bindings/csharp/multicast/test.json +++ b/bindings/csharp/multicast/test.json @@ -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" }