1#ifndef DAQ_SENSOR_FRAME_PIPELINE_HPP
2#define DAQ_SENSOR_FRAME_PIPELINE_HPP
24 std::optional<daq_comms::protocol::SensorBatch>
poll();
33 ssize_t
send_to(
const std::string& dest_ip, uint16_t dest_port,
const uint8_t* data,
62 std::unique_ptr<daq_comms::transport::UDPSocket>
socket_;
static void enable(board_bringup_t *b, uint16_t device_id)
std::vector< uint8_t > receive_buffer_
std::vector< uint8_t > last_heartbeat_buffer_
static constexpr size_t RECEIVE_BUFFER_SIZE
std::string last_heartbeat_source_ip_
std::string last_error() const
std::unique_ptr< daq_comms::transport::UDPSocket > socket_
SensorFramePipeline(const std::string &bind_address, uint16_t bind_port)
~SensorFramePipeline()=default
std::optional< EnvironmentalSample > get_last_environmental()
bool set_broadcast(bool enable)
const std::string & last_source_ip() const
std::string last_source_ip_
std::optional< daq_comms::protocol::SensorBatch > poll()
std::vector< uint8_t > last_log_buffer_
std::optional< LastLog > get_last_log()
std::optional< EnvironmentalSample > last_environmental_
std::optional< LastHeartbeat > get_last_heartbeat()
ssize_t send_to(const std::string &dest_ip, uint16_t dest_port, const uint8_t *data, size_t size)
std::string last_log_source_ip_
Motorized ball valve position: raw ADC counts -> % open.
uint32_t sample_timestamp_ms
std::vector< uint8_t > data
std::vector< uint8_t > data