mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-15 12:44:58 +00:00
feat: Adds ITemperatureSensor and IHumiditySensor interfaces
This commit is contained in:
@@ -0,0 +1,18 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace PepperDash.Essentials.Core.DeviceTypeInterfaces
|
||||||
|
{
|
||||||
|
public interface IHumiditySensor
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Reports the relative humidity level. Level ranging from 0 to 100 (for 0% to 100%
|
||||||
|
/// RH). EventIds: HumidityFeedbackFeedbackEventId will trigger to indicate change.
|
||||||
|
/// </summary>
|
||||||
|
IntFeedback HumidityFeedback { get; }
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace PepperDash.Essentials.Core.DeviceTypeInterfaces
|
||||||
|
{
|
||||||
|
public interface ITemperatureSensor
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The values will range from -400 to +1760 (for -40° to +176° F) or -400 to +800
|
||||||
|
/// (for -40° to +80° C)in tenths of a degree.
|
||||||
|
/// </summary>
|
||||||
|
IntFeedback TemperatureFeedback { get; }
|
||||||
|
|
||||||
|
|
||||||
|
BoolFeedback TemperatureInCFeedback { get; }
|
||||||
|
|
||||||
|
void SetTemperatureFormat(bool setToC);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user