2using System.Threading.Tasks;
15 private readonly
bool suportsEvents;
18 : base(
Parent, Client, BareJid, SupportsRdp)
20 this.suportsEvents = SupportsEventSubscripton;
23 public override string TypeName
25 get {
return "Sensor"; }
28 public override bool CanReadSensorData =>
true;
29 public override bool CanSubscribeToSensorData => this.suportsEvents;
50 throw new NotSupportedException();
Represents a simple XMPP sensor.
override async Task< SensorDataClientRequest > StartSensorDataMomentaryReadout()
Starts readout of momentary sensor data values.
override async Task< SensorDataSubscriptionRequest > SubscribeSensorDataMomentaryReadout(FieldSubscriptionRule[] Rules)
Starts subscription of momentary sensor data values.
override async Task< SensorDataClientRequest > StartSensorDataFullReadout()
Starts readout of all sensor data values.
Abstract base class for tree nodes in the connection view.
TreeNode Parent
Parent node. May be null if a root node.
Class representing a normal XMPP account.
Maintains information about an item in the roster.
string LastPresenceFullJid
Full JID of last resource sending online presence.
Maintains the status of a field subscription rule.
Implements an XMPP sensor client interface.
Task< SensorDataClientRequest > RequestReadout(string Destination, FieldType Types)
Requests a sensor data readout.
Task< SensorDataSubscriptionRequest > Subscribe(string Destination, FieldType Types, FieldSubscriptionRule[] Fields, bool ImmediateReadout)
Subscribes to sensor data readout.
Manages an XMPP client connection. Implements XMPP, as defined in https://tools.ietf....
FieldType
Field Type flags
Represents a duration value, as defined by the xsd:duration data type: http://www....
static Duration FromMinutes(int Minutes)
Creates a Duration object from a given number of minutes.
static Duration FromSeconds(int Seconds)
Creates a Duration object from a given number of seconds.