File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change
1
+ /* Class of Zigbee WindSpeed sensor endpoint inherited from common EP class */
2
+
3
+ #pragma once
4
+
5
+ #include " soc/soc_caps.h"
6
+ #if SOC_IEEE802154_SUPPORTED
7
+
8
+ #include " ZigbeeEP.h"
9
+ #include " ha/esp_zigbee_ha_standard.h"
10
+
11
+ class ZigbeeWindSpeedSensor : public ZigbeeEP {
12
+ public:
13
+ ZigbeeWindSpeedSensor (uint8_t endpoint);
14
+ ~ZigbeeWindSpeedSensor ();
15
+
16
+ // Set the WindSpeed value in 0,01°C
17
+ void setWindSpeed (float value);
18
+
19
+ // Set the min and max value for the WindSpeed sensor
20
+ void setMinMaxValue (float min, float max);
21
+
22
+ // Set the tolerance value for the WindSpeed sensor
23
+ void setTolerance (float tolerance);
24
+
25
+ // Set the reporting interval for WindSpeed measurement in seconds and delta
26
+ void setReporting (uint16_t min_interval, uint16_t max_interval, float delta);
27
+ void reportWindSpeed ();
28
+ };
29
+
30
+ #endif // SOC_IEEE802154_SUPPORTED
You can’t perform that action at this time.
0 commit comments