Air Quality 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, configures the LCD UI, and initializes the air quality sensor. |
|
| Creates the periodic sensor timer, initializes the sensor hardware when available, and starts sampling. |
|
| Reads the value from the onboard air quality sensor. If the sensor is unavailable, returns a simulated value. |
|
| Routes function-button events to the base application handler. |
|
| Reads the sensor value and schedules an update to the Air Quality attribute. |
|
| Logs changes to the Identify attribute. |