Trident IoT Zigbee SDK
Loading...
Searching...
No Matches
tr_thermostat_server_schedule.h File Reference

ZCL Thermostat cluster server schedule implementation. More...

Include dependency graph for tr_thermostat_server_schedule.h:

Go to the source code of this file.

Data Structures

struct  tr_thermostat_schedule_entry_t

Functions

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
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
void tr_thermostat_server_schedule_init (void)
 init of the schedule table sets up saving and restoring it from NV
void tr_thermostat_server_schedule_print (void)
 print the schedule table to the UART console
void tr_thermostat_server_schedule_clear (zb_uint8_t endpoint)
 clear the schedule table to the UART console
void tr_thermostat_server_schedule_delete (zb_uint8_t entry_index)
 delete a schedule from the table

Detailed Description

ZCL Thermostat cluster server schedule implementation.


SPDX-License-Identifier: LicenseRef-TridentMSLA SPDX-FileCopyrightText: 2025 Trident IoT, LLC https://www.tridentiot.com


Function Documentation

◆ tr_thermostat_server_schedule_clear()

void tr_thermostat_server_schedule_clear ( zb_uint8_t endpoint)

clear the schedule table to the UART console

Parameters
endpointof 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_indexindex 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
endpointdevice endpoint
number_of_transitions_for_sequencethis is set to: how many individual transitions to expect for this commands
days_of_week_bitmap_for_sequencethis 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_sequencethis is set to: if the Heat Setpoint is present and if the Cool Setpoint is present in each transition for this command
payloadthis is set to: list of the transitions for this command, containing: Transition Time(2), Heat Setpoint(2/0), Cool Setpoint (2/0)
lengththis 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
endpointdevice endpoint
number_of_transitions_for_sequencehow many individual transitions to expect for this commands
days_of_week_bitmap_for_sequencebitmap with the days of the week at which all the transitions within the payload of the command SHOULD be associated to
mode_for_sequenceif the Heat Setpoint is present and if the Cool Setpoint is present in each transition for this command
payloadlist of the transitions for this command, containing: Transition Time(2), Heat Setpoint(2/0), Cool Setpoint (2/0)
Returns
ZCL status code