-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add cluster to switch temperature units C/F
- Loading branch information
Showing
6 changed files
with
97 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
|
||
/********************************************************************** | ||
* INCLUDES | ||
*/ | ||
#include "zcl_include.h" | ||
|
||
|
||
#ifdef ZCL_THERMOSTAT_UI | ||
/********************************************************************** | ||
* LOCAL CONSTANTS | ||
*/ | ||
|
||
|
||
/********************************************************************** | ||
* LOCAL TYPES | ||
*/ | ||
|
||
|
||
/********************************************************************** | ||
* LOCAL VARIABLES | ||
*/ | ||
|
||
|
||
/********************************************************************** | ||
* LOCAL FUNCTIONS | ||
*/ | ||
|
||
_CODE_ZCL_ status_t zcl_thermostat_ui_cfg_register(u8 endpoint, u16 manuCode, u8 attrNum, const zclAttrInfo_t attrTbl[], cluster_forAppCb_t cb) | ||
{ | ||
return zcl_registerCluster(endpoint, ZCL_CLUSTER_HAVC_USER_INTERFACE_CONFIG, manuCode, attrNum, attrTbl, NULL, cb); | ||
} | ||
|
||
#endif /* ZCL_THERMOSTAT_UI */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
|
||
#ifndef ZCL_THERMOSTAT_UI_CFG_H | ||
#define ZCL_THERMOSTAT_UI_CFG_H | ||
|
||
/********************************************************************* | ||
* CONSTANTS | ||
*/ | ||
|
||
/** | ||
* @brief thermostatu UI configuration cluster Attribute IDs | ||
*/ | ||
#define ZCL_THERMOSTAT_UI_CFG_ATTRID_TEMPERATUREDISPLAYMODE 0x0000 | ||
#define ZCL_THERMOSTAT_UI_CFG_ATTRID_KEYPADLOCKOUT 0x0001 | ||
#define ZCL_THERMOSTAT_UI_CFG_ATTRID_SCHEDULEPROGRAMMINGVISIBILITY 0x0002 | ||
|
||
// status_t zcl_relative_humidity_register(u8 endpoint, u16 manuCode, u8 attrNum, const zclAttrInfo_t attrTbl[], cluster_forAppCb_t cb); | ||
|
||
#endif /* ZCL_THERMOSTAT_UI_CFG_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters