Class CloseSession

Inheritance Relationships

Base Type

Class Documentation

class CloseSession : public sick::cola2::Command

Command to close a cola2 session between host and sensor.

Public Functions

explicit CloseSession(Cola2Session &session)

Constructor of the command to close a cola2 session.

Parameters

session – The currents cola2 session, which will be closed on executing the command.

virtual std::vector<uint8_t> addTelegramData(const std::vector<uint8_t> &telegram) const

Adds data to the telegram. The close cola2 session command does not carry any extra data and therefor this function does not add any data.

Parameters

telegram – The telegram which will be modified. &

Returns

Completed telegram.

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.