Class LatestTelegramVariableCommand
Defined in File LatestTelegramVariableCommand.h
Inheritance Relationships
Base Type
public sick::cola2::VariableCommand
(Class VariableCommand)
Class Documentation
-
class LatestTelegramVariableCommand : public sick::cola2::VariableCommand
Public Types
-
typedef sick::cola2::VariableCommand base_class
Typedef to reference the base class.
Public Functions
-
LatestTelegramVariableCommand(Cola2Session &session, datastructure::Data &data, const int8_t index = 0)
Constructor of the Command. Takes the current session and the reference for the device name.
- Parameters:
session – The current cola2 session.
data – The variable to which the Measurement Data will be written on execution.
index – Index of the Channel, up to 4 channels can be supported by the cola protocol
-
bool canBeExecutedWithoutSessionID() const
Returns if the command can be executed without a session ID. Will return false for most commands except the commands to establish a connection.
- Returns:
If the command needs a session ID to be executed.
-
virtual bool processReply()
Processes the return from the sensor.
- Returns:
If processing of the returned data was successful.
-
typedef sick::cola2::VariableCommand base_class