1using System.Collections.Generic;
2using System.Threading.Tasks;
60 return Grade.NotAtAll;
99 return Data.DataReported(Message);
102 Topic.SetData(
new MessageData(Topic, Message,
null,
null, 0));
110 public override Task<IEnumerable<ICommand>>
Commands => this.GetCommands();
115 private async Task<IEnumerable<ICommand>> GetCommands()
117 List<ICommand>
Commands =
new List<ICommand>();
118 Commands.AddRange(await base.Commands);
122 return Commands.ToArray();
Contains information about a language.
Task< string > GetStringAsync(Type Type, int Id, string Default)
Gets the string value of a string ID. If no such string exists, a string is created with the default ...
Requests Ncaps to identify themselves.
MQTT Topic node that publishes discovery commands in accordance with IEEE 1451.0.
override Grade Supports(MqttTopicRepresentation Topic)
How well the topic node supports an MQTT topic
DiscoverableTopicNode()
MQTT Topic node that publishes discovery commands in accordance with IEEE 1451.0.
override async Task< IMqttTopicNode > CreateNew(MqttTopicRepresentation Topic)
Creates a new node of the same type.
override Task< bool > AcceptsChildAsync(INode Child)
If the node accepts a given child.
override Task< bool > AcceptsParentAsync(INode Parent)
If the node accepts a given parent.
override Task< string > GetTypeNameAsync(Language Language)
Diaplayable type name for node.
override async Task< IMqttData > GetDefaultDataObject()
Gets the default data object, if any.
override Task< IEnumerable< ICommand > > Commands
Available command objects. If no commands are available, null is returned.
bool ResponseReceived(MqttTopic Topic, Ieee1451_0.Messages.Message Message)
A response message has been received.
Encapsulates messages from an IEEE1451.1.6 device.
Topic node representing an IEEE 1451.0 NCAP.
IEEE 1451.1.6 root topic node
static async Task< string > GetUniqueNodeId(string NodeId)
Gets a Node ID, based on NodeId that is not already available in the database.
IMqttTopicNode Node
Reference to the MQTT Topic Node
IMqttData Data
Current parsed data.
A Metering node representing an MQTT topic
async Task< MqttBrokerNode > GetBroker()
TODO
async Task< MqttTopic > GetTopic()
TODO
string LocalTopic
Local Topic segment
Contains information about an MQTT topic
string CurrentSegment
Current segment being processed.
MqttTopic CurrentParentTopic
Current parent topic.
Interface for nodes that are published through the concentrator interface.
new INode Parent
Parent Node, or null if a root node.
new string NodeId
ID of node.