7 #define SENSORS_RESPONSE_LENGTH 20 12 :
Serial(d, install_signal_handler),
13 streamRecoveryTimer(io),
32 send(requestPacket, 2);
40 if (err != boost::asio::error::operation_aborted) {
50 tcflush(
port.lowest_layer().native_handle(), TCIFLUSH);
SerialQuery(std::shared_ptr< Data > data, bool install_signal_handler=true)
boost::asio::serial_port port
boost::asio::deadline_timer streamRecoveryTimer
std::shared_ptr< Data > data
bool send(const uint8_t *bytes, const uint32_t numBytes)
void restartSensorStream(const boost::system::error_code &err)
void processByte(uint8_t byteRead)
const uint8_t maxPacketID