SatCat5
satcat5::net::TelemetryRx Class Reference

Detailed Description

Parse incoming CBOR telemetry and notify TelemetryWatcher callbacks.

See also
net_telemetry.h, net::TelemetryWatcher.

Definition at line 319 of file net_telemetry.h.

#include <net_telemetry.h>

Inheritance diagram for satcat5::net::TelemetryRx:
[legend]
Collaboration diagram for satcat5::net::TelemetryRx:
[legend]

Public Member Functions

void telem_packet (satcat5::io::LimitedRead &src)
 The child object MUST call this method for each received message. More...
 
void add_watcher (TelemetryWatcher *callback)
 Manage the list of registered callback objects.
 
void remove_watcher (TelemetryWatcher *callback)
 Manage the list of registered callback objects.
 

Protected Member Functions

 TelemetryRx ()
 Constructor is only accessible to the child object.
 

Private Member Functions

void telem_item (QCBORDecodeContext *cbor, const QCBORItem &item)
 Internal callback delivers one item to each watcher.
 

Private Attributes

satcat5::util::List< satcat5::net::TelemetryWatcherm_watchers
 Linked list of registered callback objects.
 

Member Function Documentation

◆ telem_packet()

void TelemetryRx::telem_packet ( satcat5::io::LimitedRead src)

The child object MUST call this method for each received message.

This API is also used by net::TelemetryLoopback.

Definition at line 184 of file net_telemetry.cc.


The documentation for this class was generated from the following files: