🔍 Type guard to check if a message is valid telemetry data.
Use this to safely validate incoming Rednet messages before processing.
The message to check
True if the message is valid telemetry data
rednet.receive("otel_telemetry", (senderId, message) => { if (isRednetTelemetry(message)) { // Safe to process as telemetry collector.processTelemetry(message); } else { print("Invalid telemetry data received"); }}); Copy
rednet.receive("otel_telemetry", (senderId, message) => { if (isRednetTelemetry(message)) { // Safe to process as telemetry collector.processTelemetry(message); } else { print("Invalid telemetry data received"); }});
🔍 Type guard to check if a message is valid telemetry data.
Use this to safely validate incoming Rednet messages before processing.