Thermostat 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, sets the LCD UI, and initializes the thermostat. |
|
| Initializes the sensor, UI, and periodic temperature sampling. |
|
| Initializes the hardware temperature sensor if it is present. |
|
| Reads the Si70xx sensor if it is present; otherwise, provides a simulated temperature. |
|
| Routes function-button events to the base application handler. |
|
| Posts an application event to update the temperature when the sensor timer expires. |
|
| Samples the temperature and updates the Thermostat |
|
| Handles attribute changes from the Thermostat cluster and monitors attribute changes from the Identify cluster. |
|
| Installs the default Thermostat delegate on an endpoint. |