You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en/zigbee/ep_carbon_dioxide_sensor.rst
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,21 @@ Sets the minimum and maximum measurement values.
54
54
55
55
This function will return ``true`` if successful, ``false`` otherwise.
56
56
57
+
setDefaultValue
58
+
^^^^^^^^^^^^^^^
59
+
60
+
Sets the default (initial) value for the carbon dioxide sensor in ppm. This value will be used as the initial measured value when the device is in factory reset mode and before the sensor provides actual readings.
61
+
62
+
..code-block::arduino
63
+
64
+
bool setDefaultValue(float defaultValue);
65
+
66
+
* ``defaultValue`` - Default CO2 concentration value in ppm
67
+
68
+
**Important:** Must be called before adding the EP to Zigbee class. Only effective when the device is in factory reset mode (before commissioning/joining a network).
69
+
70
+
This function will return ``true`` if successful, ``false`` otherwise.
Copy file name to clipboardExpand all lines: docs/en/zigbee/ep_flow_sensor.rst
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,6 +70,21 @@ Sets the minimum and maximum measurement values.
70
70
71
71
This function will return ``true`` if successful, ``false`` otherwise.
72
72
73
+
setDefaultValue
74
+
^^^^^^^^^^^^^^^
75
+
76
+
Sets the default (initial) value for the flow sensor in 0.1 m³/h. This value will be used as the initial measured value when the device is in factory reset mode and before the sensor provides actual readings.
77
+
78
+
..code-block::arduino
79
+
80
+
bool setDefaultValue(float defaultValue);
81
+
82
+
* ``defaultValue`` - Default flow rate value in 0.1 m³/h
83
+
84
+
**Important:** Must be called before adding the EP to Zigbee class. Only effective when the device is in factory reset mode (before commissioning/joining a network).
85
+
86
+
This function will return ``true`` if successful, ``false`` otherwise.
Copy file name to clipboardExpand all lines: docs/en/zigbee/ep_illuminance_sensor.rst
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,21 @@ Sets the minimum and maximum measurement values.
60
60
61
61
This function will return ``true`` if successful, ``false`` otherwise.
62
62
63
+
setDefaultValue
64
+
^^^^^^^^^^^^^^^
65
+
66
+
Sets the default (initial) value for the illuminance sensor. This value will be used as the initial measured value when the device is in factory reset mode and before the sensor provides actual readings.
67
+
68
+
..code-block::arduino
69
+
70
+
bool setDefaultValue(uint16_t defaultValue);
71
+
72
+
* ``defaultValue`` - Default illuminance value in lux
73
+
74
+
**Important:** Must be called before adding the EP to Zigbee class. Only effective when the device is in factory reset mode (before commissioning/joining a network).
75
+
76
+
This function will return ``true`` if successful, ``false`` otherwise.
Copy file name to clipboardExpand all lines: docs/en/zigbee/ep_pm25_sensor.rst
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,21 @@ Sets the minimum and maximum measurement values.
60
60
61
61
This function will return ``true`` if successful, ``false`` otherwise.
62
62
63
+
setDefaultValue
64
+
^^^^^^^^^^^^^^^
65
+
66
+
Sets the default (initial) value for the PM2.5 sensor in 0.1 μg/m³. This value will be used as the initial measured value when the device is in factory reset mode and before the sensor provides actual readings.
67
+
68
+
..code-block::arduino
69
+
70
+
bool setDefaultValue(float defaultValue);
71
+
72
+
* ``defaultValue`` - Default PM2.5 concentration value in 0.1 μg/m³
73
+
74
+
**Important:** Must be called before adding the EP to Zigbee class. Only effective when the device is in factory reset mode (before commissioning/joining a network).
75
+
76
+
This function will return ``true`` if successful, ``false`` otherwise.
Copy file name to clipboardExpand all lines: docs/en/zigbee/ep_pressure_sensor.rst
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,21 @@ Sets the minimum and maximum measurement values.
60
60
61
61
This function will return ``true`` if successful, ``false`` otherwise.
62
62
63
+
setDefaultValue
64
+
^^^^^^^^^^^^^^^
65
+
66
+
Sets the default (initial) value for the pressure sensor in 1 hPa. This value will be used as the initial measured value when the device is in factory reset mode and before the sensor provides actual readings.
67
+
68
+
..code-block::arduino
69
+
70
+
bool setDefaultValue(int16_t defaultValue);
71
+
72
+
* ``defaultValue`` - Default pressure value in hPa
73
+
74
+
**Important:** Must be called before adding the EP to Zigbee class. Only effective when the device is in factory reset mode (before commissioning/joining a network).
75
+
76
+
This function will return ``true`` if successful, ``false`` otherwise.
Copy file name to clipboardExpand all lines: docs/en/zigbee/ep_temperature_sensor.rst
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,21 @@ Sets the minimum and maximum temperature values for the sensor.
60
60
61
61
This function will return ``true`` if successful, ``false`` otherwise.
62
62
63
+
setDefaultValue
64
+
^^^^^^^^^^^^^^^
65
+
66
+
Sets the default (initial) value for the temperature sensor in 0.01°C resolution. This value will be used as the initial measured value when the device is in factory reset mode and before the sensor provides actual readings.
67
+
68
+
..code-block::arduino
69
+
70
+
bool setDefaultValue(float defaultValue);
71
+
72
+
* ``defaultValue`` - Default temperature value in degrees Celsius
73
+
74
+
**Important:** Must be called before adding the EP to Zigbee class. Only effective when the device is in factory reset mode (before commissioning/joining a network).
75
+
76
+
This function will return ``true`` if successful, ``false`` otherwise.
Copy file name to clipboardExpand all lines: docs/en/zigbee/ep_wind_speed_sensor.rst
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,6 +70,21 @@ Sets the minimum and maximum measurement values.
70
70
71
71
This function will return ``true`` if successful, ``false`` otherwise.
72
72
73
+
setDefaultValue
74
+
^^^^^^^^^^^^^^^
75
+
76
+
Sets the default (initial) value for the wind speed sensor in 0.01 m/s. This value will be used as the initial measured value when the device is in factory reset mode and before the sensor provides actual readings.
77
+
78
+
..code-block::arduino
79
+
80
+
bool setDefaultValue(float defaultValue);
81
+
82
+
* ``defaultValue`` - Default wind speed value in 0.01 m/s
83
+
84
+
**Important:** Must be called before adding the EP to Zigbee class. Only effective when the device is in factory reset mode (before commissioning/joining a network).
85
+
86
+
This function will return ``true`` if successful, ``false`` otherwise.
Copy file name to clipboardExpand all lines: libraries/Zigbee/examples/Zigbee_Temp_Hum_Sensor_Sleepy/Zigbee_Temp_Hum_Sensor_Sleepy.ino
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -135,15 +135,18 @@ void setup() {
135
135
// Set minimum and maximum temperature measurement value (10-50°C is default range for chip temperature measurement)
136
136
zbTempSensor.setMinMaxValue(10,50);
137
137
138
+
// Set default (initial) value for the temperature sensor to 10.0°C to match the minimum temperature measurement value (default value is 0.0°C)
139
+
zbTempSensor.setDefaultValue(10.0);
140
+
138
141
// Set tolerance for temperature measurement in °C (lowest possible value is 0.01°C)
139
142
zbTempSensor.setTolerance(1);
140
143
141
144
// Set power source to battery, battery percentage and battery voltage (now 100% and 3.5V for demonstration)
142
145
// The value can be also updated by calling zbTempSensor.setBatteryPercentage(percentage) or zbTempSensor.setBatteryVoltage(voltage) anytime after Zigbee.begin()