BAOS SDK v2  1.0.1
An SDK providing access to IP-BAOS devices through BAOS binary protocol version 2.x
StatusFlags Class Reference

This structure represents the status flags provided by some BAOS devices server item ServerItemId::StatusFlags. More...

#include <baos/protocol/Defines.h>

Public Member Functions

 StatusFlags (const ServerItem_StatusFlagType val)
 Construct from a existing ServerItem_StatusFlagType value.
 
 StatusFlags (const Buffer &data)
 Construct from an array of bytes.
 
 StatusFlags (bool running, bool loaded, bool tl_connected, bool secure)
 Construct a new Status Flags object. More...
 
bool isRunning () const
 Return the value of the running element as boolean.
 
bool isLoaded () const
 Return if the ETS applicatiopn is loaded or not.
 
bool isTLConnected () const
 Returns if the transport layer is connected.
 
bool isSecure () const
 Returns if the device is on secure mode.
 
 operator ServerItem_StatusFlagType () const
 Conversion operator to ServerItem_StatusFlagType.
 

Detailed Description

This structure represents the status flags provided by some BAOS devices server item ServerItemId::StatusFlags.

Constructor & Destructor Documentation

◆ StatusFlags()

StatusFlags ( bool  running,
bool  loaded,
bool  tl_connected,
bool  secure 
)
inline

Construct a new Status Flags object.

Parameters
runningThe run state of the application
loadedThe load sate of the application
tl_connectedConnection state of the transport layer
secureData security enabled

The documentation for this class was generated from the following file: