From e627688b25843a5f78edf5104316573707a0c095 Mon Sep 17 00:00:00 2001 From: firealarmss Date: Mon, 10 Mar 2025 01:40:41 -0500 Subject: [PATCH] Add conventionalPeer and externalPeer flags to repeater info object --- FneBase.cs | 9 +++++++++ FnePeer.cs | 4 ++++ 2 files changed, 13 insertions(+) diff --git a/FneBase.cs b/FneBase.cs index 3007437..dc74d42 100644 --- a/FneBase.cs +++ b/FneBase.cs @@ -40,6 +40,15 @@ namespace fnecore /// public uint TxFrequency; + /// + /// Exteral Peer + /// + public bool ExternalPeer; + /// + /// Conventional Peer + /// + public bool ConventionalPeer; + /// /// Software Identifier /// diff --git a/FnePeer.cs b/FnePeer.cs index af1d508..48864a0 100644 --- a/FnePeer.cs +++ b/FnePeer.cs @@ -565,6 +565,10 @@ namespace fnecore jsonWriter.WriteNumber("rxFrequency", info.Details.RxFrequency); jsonWriter.WriteNumber("txFrequency", info.Details.TxFrequency); + // peer types + jsonWriter.WriteBoolean("externalPeer", info.Details.ExternalPeer); + jsonWriter.WriteBoolean("conventionalPeer", info.Details.ConventionalPeer); + // system info { jsonWriter.WritePropertyName("info");