From 4da43abdd0e23bea0057ea2481bd8b25ede6f006 Mon Sep 17 00:00:00 2001 From: Mike Black W9MDB Date: Sat, 22 May 2021 11:31:20 -0500 Subject: [PATCH] Add LastCommand to multicast packet https://github.com/Hamlib/Hamlib/issues/695 --- README.multicast | 2 ++ bindings/csharp/multicast/multicast.cs | 1 + bindings/csharp/multicast/test.json | 1 + 3 files changed, 4 insertions(+) diff --git a/README.multicast b/README.multicast index 9cb8895dc..a37d51528 100644 --- a/README.multicast +++ b/README.multicast @@ -77,6 +77,7 @@ 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" } @@ -128,6 +129,7 @@ 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 3846a9508..98c8d5ffe 100644 --- a/bindings/csharp/multicast/multicast.cs +++ b/bindings/csharp/multicast/multicast.cs @@ -40,6 +40,7 @@ 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 e59bb1caa..1f2480499 100644 --- a/bindings/csharp/multicast/test.json +++ b/bindings/csharp/multicast/test.json @@ -47,6 +47,7 @@ "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" }