Data Structures | |
| struct | zb_zcl_on_off_attrs_ext_t |
| On/Off cluster attributes with optional fields according to ZCL Spec 3.8.2.2. More... | |
Macros | |
| #define | ZB_ZCL_ON_OFF_SEND_REQ_NO_APS_ACK( buffer, addr, dst_addr_mode, dst_ep, ep, prof_id, dis_default_resp, command_id, cb) |
| Macro equivalent to ZB_ZCL_ON_OFF_SEND_REQ, but command is sent without APS ACK. More... | |
| #define | ZB_ZCL_DECLARE_ON_OFF_CLIENT_ATTRIB_LIST(attr_list) |
| Declare attribute list for On/Off cluster (client). More... | |
Detailed Description
Copyright (c) 2018 - 2021, Nordic Semiconductor ASA
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form, except as embedded into a Nordic Semiconductor ASA integrated circuit in a product or a software update for such product, must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- Neither the name of Nordic Semiconductor ASA nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
- This software, with or without modification, must only be used with a Nordic Semiconductor ASA integrated circuit.
- Any software provided in binary form under this license must not be reverse engineered, decompiled, modified and/or disassembled.
THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Macro Definition Documentation
◆ ZB_ZCL_DECLARE_ON_OFF_CLIENT_ATTRIB_LIST
| #define ZB_ZCL_DECLARE_ON_OFF_CLIENT_ATTRIB_LIST | ( | attr_list | ) |
ZB_ZCL_START_DECLARE_ATTRIB_LIST_CLUSTER_REVISION(attr_list, ZB_ZCL_ON_OFF) \ ZB_ZCL_FINISH_DECLARE_ATTRIB_LIST
Declare attribute list for On/Off cluster (client).
- Parameters
-
attr_list - attribute list name.
◆ ZB_ZCL_ON_OFF_SEND_REQ_NO_APS_ACK
| #define ZB_ZCL_ON_OFF_SEND_REQ_NO_APS_ACK | ( | buffer, | |
| addr, | |||
| dst_addr_mode, | |||
| dst_ep, | |||
| ep, | |||
| prof_id, | |||
| dis_default_resp, | |||
| command_id, | |||
| cb | |||
| ) |
{ \ zb_uint8_t* ptr = ZB_ZCL_START_PACKET_REQ(buffer) \ ZB_ZCL_CONSTRUCT_SPECIFIC_COMMAND_REQ_FRAME_CONTROL(ptr, dis_default_resp) \ ZB_ZCL_CONSTRUCT_COMMAND_HEADER_REQ(ptr, ZB_ZCL_GET_SEQ_NUM(), command_id); \ ZB_ZCL_SEND_COMMAND_SHORT_WITHOUT_ACK((buffer), ptr, addr, \ dst_addr_mode, dst_ep, ep, prof_id, ZB_ZCL_CLUSTER_ID_ON_OFF, cb, 0); \}#define ZB_ZCL_GET_SEQ_NUM()Return next sequence number for ZCL frame. Definition: zb_zcl_common.h:1443
Macro equivalent to ZB_ZCL_ON_OFF_SEND_REQ, but command is sent without APS ACK.