|
Sparkplug B C++ Library 1.0.0
Modern C++-23 implementation of Eclipse Sparkplug B 2.2 specification
|
Tracks the state of a device attached to an edge node. More...
#include <host_application.hpp>
Public Attributes | |
| bool | is_online {false} |
| True if DBIRTH received and device is online. | |
| uint64_t | last_seq {255} |
| Last received device sequence number. | |
| bool | birth_received {false} |
| True if DBIRTH has been received. | |
| uint64_t | offline_timestamp {0} |
| Timestamp when device went offline (from DDEATH) | |
| bool | metrics_stale {false} |
| True if metrics marked stale after DDEATH. | |
| std::unordered_map< uint64_t, std::string > | alias_map |
| Maps metric alias to name (from DBIRTH) | |
Tracks the state of a device attached to an edge node.
Definition at line 113 of file host_application.hpp.
| std::unordered_map<uint64_t, std::string> sparkplug::HostApplication::DeviceState::alias_map |
Maps metric alias to name (from DBIRTH)
Definition at line 120 of file host_application.hpp.
| bool sparkplug::HostApplication::DeviceState::birth_received {false} |
True if DBIRTH has been received.
Definition at line 116 of file host_application.hpp.
| bool sparkplug::HostApplication::DeviceState::is_online {false} |
True if DBIRTH received and device is online.
Definition at line 114 of file host_application.hpp.
| uint64_t sparkplug::HostApplication::DeviceState::last_seq {255} |
Last received device sequence number.
Definition at line 115 of file host_application.hpp.
| bool sparkplug::HostApplication::DeviceState::metrics_stale {false} |
True if metrics marked stale after DDEATH.
Definition at line 118 of file host_application.hpp.
| uint64_t sparkplug::HostApplication::DeviceState::offline_timestamp {0} |
Timestamp when device went offline (from DDEATH)
Definition at line 117 of file host_application.hpp.