Functions | |
| void | tr_thermostat_server_init_cb (zb_uint8_t endpoint) |
| Callback fires when the Thermostat server cluster plugin is initialized. | |
| zb_bool_t | tr_thermostat_server_command_received_cb (zb_zcl_parsed_hdr_t *cmd_info) |
| Callback that user can declare to handle any Thermostat server commands. | |
| void | tr_thermostat_server_write_attr_cb (zb_uint8_t endpoint, zb_uint16_t attr_id, zb_uint8_t *new_value, zb_uint16_t manuf_code) |
| Callback fires when an Thermostat server attribute is about to be written. | |
| zb_bool_t | tr_thermostat_server_setpoint_raise_lower_cb (zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint, zb_uint8_t mode, zb_int8_t amount) |
| Callback that user can declare to handle thermostat cluster setpoint raise lower command. | |
| zb_bool_t | tr_thermostat_server_set_weekly_schedule_cb (zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint, zb_uint8_t number_of_transitions_for_sequence, zb_uint8_t day_of_week_for_sequence, zb_uint8_t mode_for_sequence, zb_uint8_t *payload) |
| Callback that user can declare to handle thermostat cluster set weekly schedule command. | |
| zb_bool_t | tr_thermostat_server_get_weekly_schedule_cb (zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint, zb_uint8_t days_to_return, zb_uint8_t mode_to_return) |
| Callback that user can declare to handle thermostat cluster get weekly schedule command. | |
| zb_bool_t | tr_thermostat_server_clear_weekly_schedule_cb (zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint) |
| Callback that user can declare to handle thermostat cluster clear weekly schedule command. | |
| zb_bool_t | tr_thermostat_server_get_relay_status_log_cb (zb_zcl_parsed_hdr_t *cmd_info, zb_uint8_t endpoint) |
| Callback that user can declare to handle thermostat cluster get relay status log command. | |
| zb_bool_t | tr_thermostat_server_get_time_day_cb (zb_uint16_t *curr_time_in_mins, zb_uint8_t *curr_day_of_the_week, zb_uint8_t *curr_day, zb_uint8_t *curr_month) |
| Callback that happens when the thermostat server needs to check the current time (in minutes) and day (as day bitmap). | |
| zb_bool_t | tr_thermostat_server_next_schedule_cb (zb_uint16_t mins_until_schedule) |
| Callback that happens when the thermostat server is about to schedule a ZBOSS alarm to run the next pending schedule. | |
| zb_bool_t tr_thermostat_server_clear_weekly_schedule_cb | ( | zb_zcl_parsed_hdr_t * | cmd_info, |
| zb_uint8_t | endpoint ) |
Callback that user can declare to handle thermostat cluster clear weekly schedule command.
| cmd_info | struct that contains zcl header info |
| endpoint | device endpoint |
| zb_bool_t tr_thermostat_server_command_received_cb | ( | zb_zcl_parsed_hdr_t * | cmd_info | ) |
Callback that user can declare to handle any Thermostat server commands.
| cmd_info | struct that contains zcl header info |
| zb_bool_t tr_thermostat_server_get_relay_status_log_cb | ( | zb_zcl_parsed_hdr_t * | cmd_info, |
| zb_uint8_t | endpoint ) |
Callback that user can declare to handle thermostat cluster get relay status log command.
| cmd_info | struct that contains zcl header info |
| endpoint | device endpoint |
| zb_bool_t tr_thermostat_server_get_time_day_cb | ( | zb_uint16_t * | curr_time_in_mins, |
| zb_uint8_t * | curr_day_of_the_week, | ||
| zb_uint8_t * | curr_day, | ||
| zb_uint8_t * | curr_month ) |
Callback that happens when the thermostat server needs to check the current time (in minutes) and day (as day bitmap).
| curr_time_in_mins | app is expected to set this to the current number of minutes since midnight |
| curr_day_of_the_week | app is expected to set this to the current day using the day bitmap |
| curr_day | app is expected to set this to the current date of the current day |
| curr_month | app is expected to set this to the current month |
| zb_bool_t tr_thermostat_server_get_weekly_schedule_cb | ( | zb_zcl_parsed_hdr_t * | cmd_info, |
| zb_uint8_t | endpoint, | ||
| zb_uint8_t | days_to_return, | ||
| zb_uint8_t | mode_to_return ) |
Callback that user can declare to handle thermostat cluster get weekly schedule command.
| cmd_info | struct that contains zcl header info |
| endpoint | device endpoint |
| days_to_return | this is a bitmap of which of days to return the set point values for. Can be any combination of single days or the entire week |
| mode_to_return | which setpoint to return: Heat Setpoint, Cool Setpoint, or Both |
| void tr_thermostat_server_init_cb | ( | zb_uint8_t | endpoint | ) |
Callback fires when the Thermostat server cluster plugin is initialized.
| endpoint | device endpoint being initialized |
| zb_bool_t tr_thermostat_server_next_schedule_cb | ( | zb_uint16_t | mins_until_schedule | ) |
Callback that happens when the thermostat server is about to schedule a ZBOSS alarm to run the next pending schedule.
| mins_until_schedule | the number of minutes until the next schedule is going to run. This is less than 7 days x 1440 minutes in a day |
| zb_bool_t tr_thermostat_server_set_weekly_schedule_cb | ( | zb_zcl_parsed_hdr_t * | cmd_info, |
| zb_uint8_t | endpoint, | ||
| zb_uint8_t | number_of_transitions_for_sequence, | ||
| zb_uint8_t | day_of_week_for_sequence, | ||
| zb_uint8_t | mode_for_sequence, | ||
| zb_uint8_t * | payload ) |
Callback that user can declare to handle thermostat cluster set weekly schedule command.
| cmd_info | struct that contains zcl header info |
| endpoint | device endpoint |
| number_of_transitions_for_sequence | how many individual transitions to expect for this commands |
| day_of_week_for_sequence | the day of the week at which all the transitions within the payload of the command SHOULD be associated to |
| mode_for_sequence | if the Heat Setpoint is present and if the Cool Setpoint is present in each transition for this command |
| payload | list of the transitions for this command, containing: Transition Time(2), Heat Setpoint(2/0), Cool Setpoint (2/0) |
| zb_bool_t tr_thermostat_server_setpoint_raise_lower_cb | ( | zb_zcl_parsed_hdr_t * | cmd_info, |
| zb_uint8_t | endpoint, | ||
| zb_uint8_t | mode, | ||
| zb_int8_t | amount ) |
Callback that user can declare to handle thermostat cluster setpoint raise lower command.
| cmd_info | struct that contains zcl header info |
| endpoint | device endpoint |
| mode | specifies which set point is changed: heat(0), cool(1), or both(2) |
| amount | signed 8 bit value specifies the amount to change in 0.1 degrees Celsius |
| void tr_thermostat_server_write_attr_cb | ( | zb_uint8_t | endpoint, |
| zb_uint16_t | attr_id, | ||
| zb_uint8_t * | new_value, | ||
| zb_uint16_t | manuf_code ) |
Callback fires when an Thermostat server attribute is about to be written.
| endpoint | device endpoint |
| attr_id | ZCL attribute id |
| new_value | pointer to the new attribute value |
| manuf_code | manufacturer specific code |