2using System.Threading.Tasks;
17 private bool firstMessage =
true;
52 this.firstMessage =
false;
Information about content received from the MQTT server.
string DataString
String representation of UTF-8 encoded binary data.
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 ...
Contains methods for simple hash calculations.
static byte[] StringToBinary(string s)
Parses a hex string.
Hex-encoded IEEE 1451.1.6 NCAP.
HexNcap(MqttTopic Topic, byte[] Value)
Hex-encoded IEEE 1451.1.6 NCAP.
override void SnifferOutput(ICommunicationLayer Output)
Outputs the parsed data to the sniffer.
HexNcap()
Hex-encoded IEEE 1451.1.6 NCAP.
override IMqttData CreateNew(MqttTopic Topic, MqttContent Content)
Creates a new instance of the data.
override async Task< DataProcessingResult > DataReported(MqttTopic Topic, MqttContent Content)
Called when new data has been published.
override Task< string > GetTypeName(Language Language)
Type name representing data.
Abstract base class for IEEE 1451.1.6 NCAPs.
IEEE 1451.1.6 root topic node
Represents an MQTT topic with binary data encoded as decimal strings.
static readonly Regex RegEx
Parsed regular expression for hexadecimal string data.
MqttTopic Topic
Topic used
Interface for observable classes implementing communication protocols.
Interface for MQTT Data encapsulations
Task< DataProcessingResult > DataReported(MqttTopic Topic, MqttContent Content)
Called when new data has been published.
DataProcessingResult
Results from processing an incoming message.