35 #ifndef SICK_SAFETYSCANNERS_COLA2_VARIABLECOMMAND_H 36 #define SICK_SAFETYSCANNERS_COLA2_VARIABLECOMMAND_H 63 std::vector<uint8_t>
addTelegramData(
const std::vector<uint8_t>& telegram)
const;
90 #endif // SICK_SAFETYSCANNERS_COLA2_VARIABLECOMMAND_H uint16_t getVariableIndex() const
Base class for commands. Defines the base interface and does the common tasks.
bool processReply()
Processes the return from the sensor.
std::vector< uint8_t > addTelegramData(const std::vector< uint8_t > &telegram) const
Adds the data to the telegram.
Command to read a variable from the sensor.
VariableCommand(Cola2Session &session, const uint16_t &variable_index)
Constructor of the command.
bool canBeExecutedWithoutSessionID() const
Returns if the command can be executed without a session ID. Will return false for most commands exce...
uint16_t m_variable_index
void setVariableIndex(const uint16_t &variable_index)
Establishes a cola2 session with a sensor and enables execution of commands in this session...