From 3d8c362cd5409246c7026ea956ce10d51ed9ebc3 Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Thu, 21 Aug 2025 16:49:02 +0300 Subject: Telemetry Wires. Implemented Firmware User Notifications. Added Missing UI Settings Units Display. Add Machine Name to General Information Dialog. --- .../Tango.Telemetry.Tester.IOT.CLI/Program.cs | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) (limited to 'Software/Visual_Studio/Utilities') diff --git a/Software/Visual_Studio/Utilities/Tango.Telemetry.Tester.IOT.CLI/Program.cs b/Software/Visual_Studio/Utilities/Tango.Telemetry.Tester.IOT.CLI/Program.cs index 945fe5f1f..07d301f3d 100644 --- a/Software/Visual_Studio/Utilities/Tango.Telemetry.Tester.IOT.CLI/Program.cs +++ b/Software/Visual_Studio/Utilities/Tango.Telemetry.Tester.IOT.CLI/Program.cs @@ -44,6 +44,7 @@ namespace Tango.Telemetry.Tester.IOT.CLI //publisher.RegisterSource(new DiagnosticsTestSource()); publisher.RegisterSource(new EventsTestSource()); publisher.RegisterSource(new MachineStatusTestSource()); + publisher.RegisterSource(new WiresTestSource()); var logsSource = new TelemetryLogsStreamingSource(); logsSource.Config.Categories.Add(LogCategory.Info); @@ -365,4 +366,46 @@ namespace Tango.Telemetry.Tester.IOT.CLI } } + + public class WiresTestSource : ITelemetryStreamingSource + { + public bool IsStarted { get; } + public string Name { get; } = "Wires Test Streaming"; + public bool RequiresTelemetryDuplicationTracking { get; } + + public event EventHandler TelemetryAvailable; + + public void Dispose() + { + + } + + public void Start() + { + Task.Factory.StartNew(() => + { + TelemetryWire wires = new TelemetryWire(); + + for (int i = 0; i < 10; i++) + { + wires.Wires.Add(new Wire() + { + Name = "Wire 1", + Value = i, + }); + } + + TelemetryAvailable?.Invoke(this, new TelemetryAvailableEventArgs() + { + DisableDeliveryRetries = true, + TelemetryObject = wires + }); + }); + } + + public void Stop() + { + + } + } } -- cgit v1.3.1