3 * Copyright (c) 2020 Project CHIP Authors
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
20 * Copyright (c) 2020 Silicon Labs
22 * Licensed under the Apache License, Version 2.0 (the "License");
23 * you may not use this file except in compliance with the License.
24 * You may obtain a copy of the License at
26 * http://www.apache.org/licenses/LICENSE-2.0
28 * Unless required by applicable law or agreed to in writing, software
29 * distributed under the License is distributed on an "AS IS" BASIS,
30 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31 * See the License for the specific language governing permissions and
32 * limitations under the License.
37 * @brief Routines for the ZLL Scenes Client plugin.
38 *******************************************************************************
40 * <b>Copyright 2018 Silicon Laboratories Inc.
42 *******************************************************************************
44 * The licensor of this software is Silicon
45 * Laboratories Inc. Your use of this software is
46 * governed by the terms of Silicon Labs Master
47 * Software License Agreement (MSLA) available at
48 * www.silabs.com/about-us/legal/master-software-license-agreement.
49 * This software is distributed to you in Source Code
50 * format and is governed by the sections of the MSLA
51 * applicable to Source Code.
53 ******************************************************************************/
55 #include "../../include/af.h"
56 #include "../scenes-client/scenes-client.h"
58 bool emberAfScenesClusterEnhancedAddSceneResponseCallback(uint8_t status, uint16_t groupId, uint8_t sceneId)
60 return emberAfPluginScenesClientParseAddSceneResponse(emberAfCurrentCommand(), status, groupId, sceneId);
63 bool emberAfScenesClusterEnhancedViewSceneResponseCallback(uint8_t status, uint16_t groupId, uint8_t sceneId,
64 uint16_t transitionTime, uint8_t * sceneName,
65 uint8_t * extensionFieldSets)
67 return emberAfPluginScenesClientParseViewSceneResponse(emberAfCurrentCommand(), status, groupId, sceneId, transitionTime,
68 sceneName, extensionFieldSets);
71 bool emberAfScenesClusterCopySceneResponseCallback(uint8_t status, uint16_t groupIdFrom, uint8_t sceneIdFrom)
73 emberAfScenesClusterPrintln("RX: CopySceneResponse 0x%x, 0x%2x, 0x%x", status, groupIdFrom, sceneIdFrom);
74 emberAfSendImmediateDefaultResponse(EMBER_ZCL_STATUS_SUCCESS);