UserLevel
Available CoLa user levels.
std::unique_ptr< IAuthentication > m_pAuthentication
bool login(IAuthentication::UserLevel userLevel, const std::string password)
std::string getDeviceIdent()
Get device information by calling the "DeviceIdent" method on the device.
bool logout()
Logout from the device.
CoLaCommand sendCommand(CoLaCommand &command)
Send a CoLaBCommand to the device and waits for the result.
bool open(const std::string &hostname, uint8_t sessionTimeout_s=kSessionTimeout_s)
std::unique_ptr< IProtocolHandler > m_pProtocolHandler
static const uint8_t kSessionTimeout_s
Default session timeout in seconds.
std::unique_ptr< TcpSocket > m_pTransport
std::unique_ptr< ControlSession > m_pControlSession
std::string receiveCoLaResponse()
ProtocolType
The numbers used for the protocols are the port numbers.
CoLaCommand receiveCoLaCommand()