@@ -42,7 +42,7 @@ const uint32_t decommissioningTimeout = 5000; // keep the button pressed for 5s
42
42
// Simulate a temperature sensor - add your preferred temperature sensor library code here
43
43
float getSimulatedTemperature () {
44
44
// The Endpoint implementation keeps an int16_t as internal value information,
45
- // which stores data in 1/100th of any temperature unit
45
+ // which stores data in 1/100th Celsius.
46
46
static float simulatedTempHWSensor = -10.0 ;
47
47
48
48
// it will increase from -10C to 10C in 0.5C steps to simulate a temperature sensor
@@ -70,7 +70,7 @@ void setup() {
70
70
Serial.println ();
71
71
72
72
// set initial temperature sensor measurement
73
- // Simulated Sensor - it shall initially print -25 degrees and then move to the -10 to 10 range
73
+ // Simulated Sensor - it shall initially print -25C and then move to the -10C to 10C range
74
74
SimulatedTemperatureSensor.begin (-25.00 );
75
75
76
76
// Matter beginning - Last step, after all EndPoints are initialized
@@ -102,7 +102,7 @@ void loop() {
102
102
// Print the current temperature value every 5s
103
103
if (!(timeCounter++ % 10 )) { // delaying for 500ms x 10 = 5s
104
104
// Print the current temperature value
105
- Serial.printf (" Current Temperature is %.02f <Temperature Units> \r\n " , SimulatedTemperatureSensor.getTemperature ());
105
+ Serial.printf (" Current Temperature is %.02fC \r\n " , SimulatedTemperatureSensor.getTemperature ());
106
106
// Update Temperature from the (Simulated) Hardware Sensor
107
107
// Matter APP shall display the updated temperature percent
108
108
SimulatedTemperatureSensor.setTemperature (getSimulatedTemperature ());
0 commit comments