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

Tracks the state of an individual edge node. More...

#include <host_application.hpp>

Public Attributes

bool is_online {false}
 True if NBIRTH received and node is online.
 
uint64_t last_seq {255}
 Last received node sequence number (starts at 255)
 
uint64_t bd_seq {0}
 Current birth/death sequence number.
 
uint64_t birth_timestamp {0}
 Timestamp of last NBIRTH.
 
bool birth_received {false}
 True if NBIRTH has been received.
 
std::unordered_map< std::string, DeviceState, TransparentStringHash, std::equal_to<> > devices
 Attached devices (device_id -> state)
 
std::unordered_map< uint64_t, std::string > alias_map
 Maps metric alias to name (from NBIRTH)
 

Detailed Description

Tracks the state of an individual edge node.

Definition at line 140 of file host_application.hpp.

Member Data Documentation

◆ alias_map

std::unordered_map<uint64_t, std::string> sparkplug::HostApplication::NodeState::alias_map

Maps metric alias to name (from NBIRTH)

Definition at line 149 of file host_application.hpp.

◆ bd_seq

uint64_t sparkplug::HostApplication::NodeState::bd_seq {0}

Current birth/death sequence number.

Definition at line 143 of file host_application.hpp.

◆ birth_received

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

True if NBIRTH has been received.

Definition at line 145 of file host_application.hpp.

◆ birth_timestamp

uint64_t sparkplug::HostApplication::NodeState::birth_timestamp {0}

Timestamp of last NBIRTH.

Definition at line 144 of file host_application.hpp.

◆ devices

std::unordered_map<std::string, DeviceState, TransparentStringHash, std::equal_to<> > sparkplug::HostApplication::NodeState::devices

Attached devices (device_id -> state)

Definition at line 147 of file host_application.hpp.

◆ is_online

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

True if NBIRTH received and node is online.

Definition at line 141 of file host_application.hpp.

◆ last_seq

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

Last received node sequence number (starts at 255)

Definition at line 142 of file host_application.hpp.


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