/// <summary> /// Outputs a field to XML using the field format specified in the IEEE XMPP IoT extensions. /// </summary> /// <param name="Xml">XML output.</param> /// <param name="Error">Error to output.</param> public static void OutputError(XmlWriter Xml, ThingError Error) { Xml.WriteElementString("err", Error.ErrorMessage); }
/// <summary> /// Represents one item in a sensor data output. /// </summary> /// <param name="Error">Error message.</param> public ErrorItem(ThingError Error) : base(Colors.Yellow, Colors.Red) { this.error = Error; }