IoT::DeviceStatus

struct StatusMessage

File Information

Library: IoT/DeviceStatus
Package: DeviceStatusService
Header: IoT/DeviceStatus/DeviceStatusService.h

Description

A device status message.

Constructors

StatusMessage inline

StatusMessage();

Variables

acknowledgeable

bool acknowledgeable;

Flag denoting whether the status update can be acknowledged by the user.

acknowledged

bool acknowledged;

True if message has been acknowledged by user, otherwise false.

Once a status update has been acknowledged, it will no longer affect the global (or source-specific) device status.

id

Poco::Int64 id;

An internally assigned integer that identifies the message. Used with acknowledge() and remove().

messageClass

std::string messageClass;

An string that identifies the message class.

If non-empty, any previously posted message with the same class will be removed before the new message is added. Therefore, at most one message of a given non-empty message class is stored.

source

std::string source;

Optional source of the status update. Can be an application specific name of a subsystem or device.

status

DeviceStatus status;

New device status.

text

std::string text;

The message text.

timestamp

Poco::DateTime timestamp;

Date and time of the message.

Securely control IoT edge devices from anywhere   Connect a Device