-
Notifications
You must be signed in to change notification settings - Fork 37
Closed
Labels
featurerequestFeature requestFeature request
Description
Summary
In many examples, delay before two consecutive data acquisition is performed by polling.
arduino/libraries/Matter/examples/matter_sensor_multiple/matter_sensor_multiple.ino
Lines 61 to 67 in 65a739a
| if ((last_action_temp + 10000) < millis()) { | |
| last_action_temp = millis(); | |
| float current_cpu_temp = getCPUTemp(); | |
| // Publish the temperature value - you can also use 'matter_temp_sensor = current_cpu_temp' | |
| matter_temp_sensor.set_measured_value_celsius(current_cpu_temp); | |
| Serial.printf("Current CPU temperature: %.02f C\n", current_cpu_temp); | |
| } |
This might not be especially low-power.
How to use instead an event raised by a timer? As SiLabs core for Arduino seems to rely on FreeRTOS, the RTOS elements should be already available.
Thank you!
Metadata
Metadata
Assignees
Labels
featurerequestFeature requestFeature request