ZCL Thermostat cluster server schedule implementation.
More...
Go to the source code of this file.
ZCL Thermostat cluster server schedule implementation.
SPDX-License-Identifier: LicenseRef-TridentMSLA SPDX-FileCopyrightText: 2025 Trident IoT, LLC https://www.tridentiot.com
◆ tr_thermostat_server_schedule_clear()
| void tr_thermostat_server_schedule_clear |
( |
zb_uint8_t | endpoint | ) |
|
clear the schedule table to the UART console
- Parameters
-
| endpoint | of schedules to clear or 0xFF to clear all |
◆ tr_thermostat_server_schedule_delete()
| void tr_thermostat_server_schedule_delete |
( |
zb_uint8_t | entry_index | ) |
|
delete a schedule from the table
- Parameters
-
| entry_index | index of schedule to delete |
◆ tr_thermostat_server_schedule_get()
| zb_uint8_t tr_thermostat_server_schedule_get |
( |
zb_uint8_t | endpoint, |
|
|
zb_uint8_t * | number_of_transitions_for_sequence, |
|
|
zb_uint8_t * | days_of_week_bitmap_for_sequence, |
|
|
zb_uint8_t * | mode_for_sequence, |
|
|
zb_uint8_t * | payload, |
|
|
zb_uint8_t * | length ) |
for reading the schedule of a thermostat
- Parameters
-
| endpoint | device endpoint |
| number_of_transitions_for_sequence | this is set to: how many individual transitions to expect for this commands |
| days_of_week_bitmap_for_sequence | this is set to: a bitmap of the days of the week at which the transitions within the payload of the command SHOULD be associated to |
| mode_for_sequence | this is set to: if the Heat Setpoint is present and if the Cool Setpoint is present in each transition for this command |
| payload | this is set to: list of the transitions for this command, containing: Transition Time(2), Heat Setpoint(2/0), Cool Setpoint (2/0) |
| length | this is set to: length of the full ZCL payload |
- Returns
- ZCL status code
◆ tr_thermostat_server_schedule_init()
| void tr_thermostat_server_schedule_init |
( |
void | | ) |
|
init of the schedule table sets up saving and restoring it from NV
◆ tr_thermostat_server_schedule_print()
| void tr_thermostat_server_schedule_print |
( |
void | | ) |
|
print the schedule table to the UART console
◆ tr_thermostat_server_schedule_set()
| zb_uint8_t tr_thermostat_server_schedule_set |
( |
zb_uint8_t | endpoint, |
|
|
zb_uint8_t | number_of_transitions_for_sequence, |
|
|
zb_uint8_t | days_of_week_bitmap_for_sequence, |
|
|
zb_uint8_t | mode_for_sequence, |
|
|
zb_uint8_t * | payload ) |
for setting the schedule of a thermostat
- Parameters
-
| endpoint | device endpoint |
| number_of_transitions_for_sequence | how many individual transitions to expect for this commands |
| days_of_week_bitmap_for_sequence | bitmap with the days 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) |
- Returns
- ZCL status code