2using System.Threading.Tasks;
16 private bool firstMessage =
true;
51 this.firstMessage =
false;
52 return await this.
DataReported(Topic, Content, Convert.FromBase64String(s));
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 ...
Base64-encoded IEEE 1451.1.6 NCAP.
override void SnifferOutput(ICommunicationLayer Output)
Outputs the parsed data to the sniffer.
override async Task< DataProcessingResult > DataReported(MqttTopic Topic, MqttContent Content)
Called when new data has been published.
Base64Ncap(MqttTopic Topic, byte[] Value)
Base64-encoded IEEE 1451.1.6 NCAP.
Base64Ncap()
Base64-encoded IEEE 1451.1.6 NCAP.
override Task< string > GetTypeName(Language Language)
Type name representing data.
override IMqttData CreateNew(MqttTopic Topic, MqttContent Content)
Creates a new instance of the data.
Abstract base class for IEEE 1451.1.6 NCAPs.
IEEE 1451.1.6 root topic node
Represents an MQTT topic with base64-encoded binary data.
static readonly Regex RegEx
Parsed regular expression for BASE64-encoded 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.