Go to the documentation of this file.
46 , m_blink_time(blink_time)
53 size_t base_length = base_output.size();
57 const auto new_data_offset_it = output.begin() + base_length + telegram.size();
bool processReply()
Processes the return from the sensor.
std::vector< uint8_t > addTelegramData(const std::vector< uint8_t > &telegram) const
Adds the settings as data to the packetbuffer.
bool processReply()
Processes the return from the sensor. Checks if the method was acknowledged by the sensor.
Establishes a cola2 session with a sensor and enables execution of commands in this session.
void writeUint16LittleEndian(std::vector< uint8_t >::iterator it, const uint16_t v)
Writes an unsigned 16-bit integer to a buffer at offset in little endian encoding.
bool canBeExecutedWithoutSessionID() const
Returns if the command can be executed without a session ID. Will return false for most commands exce...
void writeDataToDataPtr(std::vector< uint8_t >::iterator data_ptr) const
std::vector< uint8_t > addTelegramData(const std::vector< uint8_t > &telegram) const
Adds the data to the telegram.
std::vector< uint8_t > expandTelegram(const std::vector< uint8_t > &telegram, size_t additional_bytes) const
FindMeCommand(Cola2Session &session, uint16_t blink_time)
Constructor of the Command, takes the current session and time to blink for.
Command for method calls to the sensor.