telemetry.h
Go to the documentation of this file.
Basic telemetry packet structure - encapsulating routing information and data.
Definition: types.h:70
void telemetry_init(void)
Performs basic telemetry connection and thread initialization.
pubsub_conn * telemetry_connect(void)
Connects to the telemetry system - thread safe version.
bool telemetry_unsubscribe(const pubsub_conn *conn, uint16_t topic_id)
Unsubscribes a connection from a specific topic.
CSP_DEFINE_TASK(telemetry_rx_task)
Task used to receive incoming data from telemetry publishers.
bool telemetry_subscribe(const pubsub_conn *conn, uint16_t topic_id)
Subscribes the pubsub_conn to the specified topic.
int telemetry_num_subscribers(void)
bool telemetry_disconnect(pubsub_conn *conn)
Disconnects from the telemetry system.
bool telemetry_is_subscribed(const pubsub_conn *client_conn, uint16_t topic_id)
Checks if a telemetry client is subscribed to a topic.
pubsub_conn * kprv_telemetry_connect(void)
Internal connect function - not thread safe.
bool telemetry_read(const pubsub_conn *conn, telemetry_packet *packet)
Reads a telemetry packet from the telemetry server.
bool telemetry_publish(telemetry_packet packet)
Public facing telemetry input interface.