Modbus Vault v1.0
Loading...
Searching...
No Matches
router.h File Reference

System routing. More...

Include dependency graph for router.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void router_dispatch (const telemetry_pipeline_record_t *payload_ptr)
 Dispatch serialized frames.
 
bool router_publish_replay (void)
 Try publishing replays.
 
void router_on_replay_available_callback (void)
 Notify telemetry service that replay is available.
 

Detailed Description

System routing.

Author
Abanoub Salah

Route serialized frames and replays

Function Documentation

◆ router_dispatch()

void router_dispatch ( const telemetry_pipeline_record_t payload_ptr)

Dispatch serialized frames.

Dispatch serialized frames to be published if connected or loggger otherwise

Parameters
payload_ptrPointer to payload
Note
This needs to be as light as possible so it just enqueues to corresponding queue
Here is the call graph for this function:
Here is the caller graph for this function:

◆ router_publish_replay()

bool router_publish_replay ( void  )

Try publishing replays.

Fetch next logged replay if MQTT connected and try to send it

Returns
true on success false otherwise
Here is the call graph for this function:
Here is the caller graph for this function: