SensESP 3.0.1
Universal Signal K sensor toolkit ESP32
|
Signal K delta queue. More...
#include <sensesp/signalk/signalk_delta_queue.h>
Public Member Functions | |
SKDeltaQueue (unsigned int max_buffer_size=20) | |
void | append (const String &val) |
bool | data_available () |
void | get_delta (String &output) |
void | connect_emitters () |
void | reset_meta_send () |
bool | take_semaphore (uint64_t timeout_ms=0) |
void | release_semaphore () |
Signal K delta queue.
This class implements a Signal K delta queue. There should be a unique queue for each possible output channel (SKWSClient, NMEA 2000 messages, carrier pigeons).
Definition at line 16 of file signalk_delta_queue.h.
sensesp::SKDeltaQueue::SKDeltaQueue | ( | unsigned int | max_buffer_size = 20 | ) |
void sensesp::SKDeltaQueue::append | ( | const String & | val | ) |
Definition at line 30 of file signalk_delta_queue.cpp.
void sensesp::SKDeltaQueue::connect_emitters | ( | ) |
Definition at line 39 of file signalk_delta_queue.cpp.
bool sensesp::SKDeltaQueue::data_available | ( | ) |
void sensesp::SKDeltaQueue::get_delta | ( | String & | output | ) |
void sensesp::SKDeltaQueue::release_semaphore | ( | ) |
|
inline |
Used to indicate that the next update generated by this delta should have metadata added to it.
Definition at line 27 of file signalk_delta_queue.h.
bool sensesp::SKDeltaQueue::take_semaphore | ( | uint64_t | timeout_ms = 0 | ) |