Callback API for incoming telemetry items.
- See also
- net_telemetry.h, net::TelemetryRx.
Definition at line 259 of file net_telemetry.h.
#include <net_telemetry.h>
|
| virtual void | telem_rcvd (u32 key, const QCBORItem &item, QCBORDecodeContext *cbor)=0 |
| | Callback for each received key/value pair. More...
|
| |
◆ telem_rcvd()
| virtual void satcat5::net::TelemetryWatcher::telem_rcvd |
( |
u32 |
key, |
|
|
const QCBORItem & |
item, |
|
|
QCBORDecodeContext * |
cbor |
|
) |
| |
|
pure virtual |
Callback for each received key/value pair.
The child object MUST override this callback method. Users with string keys should compare against the hash first, to ensure the matching process can iterate quickly.
- Parameters
-
| key | Integer key, or CRC32 hash of a string key. |
| item | Value associated with this key. |
| cbor | QCBOR decoder for reading complex data structures. This pointer is provided for maps and arrays, not for simple items. The callback MUST NOT call ExitArray or ExitMap. |
Implemented in satcat5::net::TelemetryLogger.
The documentation for this class was generated from the following files: