Multi Sensor Application Override APIs#
To override any of the following hooks, declare the corresponding *Impl() method in CustomerAppTask.h and implement it in CustomerAppTask.cpp. Ensure that the method signature matches the declaration in autogen/AppTaskImpl.h.
AppTask#
Override | Public API | Default behavior |
|---|---|---|
|
| Registers the button callback, initializes the occupancy LED and display, and starts the sensor manager. |
|
| Initializes the sensor clusters, registers the attribute listener, and schedules periodic sampling. |
|
| Reads the Si70xx sensor if it is present; otherwise, provides simulated temperature and humidity values. |
|
| Routes events from the function and occupancy-toggle buttons. |
|
| Toggles the Occupancy attribute for an application button event. |
|
| Samples temperature and humidity and updates their measured value attributes. |
|
| Updates the occupancy LED and display after the Occupancy attribute changes. |
|
| Updates the display after a temperature or humidity change. |
|
| Converts Occupancy, Temperature Measurement, and Relative Humidity Measurement changes into application events. |
|
| Logs Identify attribute changes. |