Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
IMqttData.cs
1using System;
2using System.Collections.Generic;
3using System.Threading.Tasks;
10
12{
17 {
21 Incompatible,
22
26 Processed,
27
31 ProcessedNewMomentaryValues
32 }
33
37 public interface IMqttData : IProcessingSupport<MqttContent>
38 {
42 DateTime Timestamp { get; }
43
48
53
57 bool Retain { get; }
58
62 bool IsControllable { get; }
63
70 Task<DataProcessingResult> DataReported(MqttTopic Topic, MqttContent Content);
71
76
84 Task StartReadout(ThingReference ThingReference, ISensorReadout Request, string Prefix, bool Last);
85
90
94 void Information(ICommunicationLayer Output, string Info);
95
99 void Add(List<Field> Fields, Field Field, ISensorReadout Request);
100
105
113 }
114}
Information about content received from the MQTT server.
Definition: MqttContent.cs:9
Contains information about a language.
Definition: Language.cs:17
Abstract base class for control parameters.
MQTT Topic information.
Definition: MqttTopic.cs:19
Base class for all sensor data fields.
Definition: Field.cs:20
Contains a reference to a thing
Interface for observable classes implementing communication protocols.
Interface for detecting interfaces supporting objects with predefined features.
Interface for classes managing sensor data readouts.
Interface for MQTT Data encapsulations
Definition: IMqttData.cs:38
DateTime Timestamp
Timestamp of data reception.
Definition: IMqttData.cs:42
Task< string > GetTypeName(Language Language)
Type name representing data.
ControlParameter[] GetControlParameters()
Gets an array of control parameters
MqttTopic Topic
Topic used
Definition: IMqttData.cs:52
bool IsControllable
If data can be controlled (written)
Definition: IMqttData.cs:62
void Add(List< Field > Fields, Field Field, ISensorReadout Request)
Reports fields during an active readout.
Task StartReadout(ThingReference ThingReference, ISensorReadout Request, string Prefix, bool Last)
Starts a readout of the data.
bool Retain
If retain flag was set.
Definition: IMqttData.cs:57
MqttQualityOfService QoS
Quality of Service used
Definition: IMqttData.cs:47
void Information(ICommunicationLayer Output, string Info)
Outputs information to sniffer.
Task< DataProcessingResult > DataReported(MqttTopic Topic, MqttContent Content)
Called when new data has been published.
IMqttData CreateNew(MqttTopic Topic, MqttContent Content)
Creates a new instance of the data.
void SnifferOutput(ICommunicationLayer Output)
Outputs the parsed data to the sniffer.
MqttQualityOfService
MQTT Quality of Service level.
DataProcessingResult
Results from processing an incoming message.
Definition: IMqttData.cs:17