public PressureSensor(PressureConsumer consumer, string UniqueName) : base(UniqueName)
 {
     this.consumer = consumer;
     this.Title = "Pressure";
     this.consumer.SessionLost += Consumer_SessionLost;
     this.Units = PressureUnits.kPa;
 }
 private void Consumer_SessionLost(PressureConsumer sender, Windows.Devices.AllJoyn.AllJoynSessionLostEventArgs args)
 {
     if (this.onSensorSessionLost != null)
         this.onSensorSessionLost.Invoke(this);
 }