BAOS SDK v2
1.0.1
An SDK providing access to IP-BAOS devices through BAOS binary protocol version 2.x
|
An Indication event. More...
#include <baos/protocol/Indication.h>
Public Types | |
enum class | Type { SERVERITEM , DP_VALUE , UNKNOWN } |
The indication types. More... | |
using | UPtr = std::unique_ptr< IndicationEvent > |
Alias for an unique pointer from this class. | |
using | EventDataType = std::variant< protocol::ServerItems, protocol::DatapointValueStates > |
The possible different payload types. | |
Public Member Functions | |
IndicationEvent ()=default | |
The default constructor. | |
IndicationEvent (Type eventT, EventDataType &&pkt, IndPromise &&prom, std::uint64_t mID=0) | |
Construct a new Indication Event object. More... | |
Public Attributes | |
Type | eventType {Type::UNKNOWN} |
The indication type. | |
std::uint64_t | msgID {0} |
The unqiue message id. | |
IndPromise | indPromise |
The indication promise. | |
EventDataType | data_ |
The payload. | |
An Indication event.
Represents in indication with its type and payload
|
strong |
|
inline |
Construct a new Indication Event object.
eventT | The IndicationEvent::Type |
pkt | The paylod / data |
prom | The promise related to this indication |
mID | An unqiue message id for this indication |