13 uint8_t numPackets =
data->getNumPackets();
14 std::vector<uint8_t> packetIDs =
data->getPacketIDs();
15 uint8_t streamReq[2 + numPackets];
17 streamReq[1] = numPackets;
19 for (std::vector<uint8_t>::iterator it = packetIDs.begin(); it != packetIDs.end(); ++it) {
25 send(streamReq, 2 + numPackets);
SerialStream(boost::shared_ptr< Data > data, const uint8_t &header=create::util::STREAM_HEADER)
boost::shared_ptr< Data > data
uint8_t expectedNumDataBytes
void processByte(uint8_t byteRead)
bool send(const uint8_t *bytes, const uint32_t numBytes)