Sparkplug B C++ Library 1.0.0
Modern C++-23 implementation of Eclipse Sparkplug B 2.2 specification
Loading...
Searching...
No Matches
sparkplug::HostApplication::DeviceState Struct Reference

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)
 

Detailed Description

Tracks the state of a device attached to an edge node.

Definition at line 113 of file host_application.hpp.

Member Data Documentation

◆ alias_map

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.

◆ birth_received

bool sparkplug::HostApplication::DeviceState::birth_received {false}

True if DBIRTH has been received.

Definition at line 116 of file host_application.hpp.

◆ is_online

bool sparkplug::HostApplication::DeviceState::is_online {false}

True if DBIRTH received and device is online.

Definition at line 114 of file host_application.hpp.

◆ last_seq

uint64_t sparkplug::HostApplication::DeviceState::last_seq {255}

Last received device sequence number.

Definition at line 115 of file host_application.hpp.

◆ metrics_stale

bool sparkplug::HostApplication::DeviceState::metrics_stale {false}

True if metrics marked stale after DDEATH.

Definition at line 118 of file host_application.hpp.

◆ offline_timestamp

uint64_t sparkplug::HostApplication::DeviceState::offline_timestamp {0}

Timestamp when device went offline (from DDEATH)

Definition at line 117 of file host_application.hpp.


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