File tree 3 files changed +12
-31
lines changed
3 files changed +12
-31
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,18 @@ using namespace app::Clusters::Groups;
40
40
using namespace chip ::Credentials;
41
41
using Protocols::InteractionModel::Status;
42
42
43
+ // Is the device identifying?
44
+ static bool emberAfIsDeviceIdentifying (EndpointId endpoint)
45
+ {
46
+ #ifdef ZCL_USING_IDENTIFY_CLUSTER_SERVER
47
+ uint16_t identifyTime;
48
+ Status status = app::Clusters::Identify::Attributes::IdentifyTime::Get (endpoint, &identifyTime);
49
+ return (status == Status::Success && 0 < identifyTime);
50
+ #else
51
+ return false ;
52
+ #endif
53
+ }
54
+
43
55
/* *
44
56
* @brief Checks if group-endpoint association exist for the given fabric
45
57
*/
Original file line number Diff line number Diff line change @@ -196,21 +196,6 @@ bool emberAfIsTypeSigned(EmberAfAttributeType dataType);
196
196
197
197
/* * @} END Attribute Storage */
198
198
199
- /* * @name Device Control */
200
- // @{
201
-
202
- /* *
203
- * @brief Function that checks if endpoint is identifying
204
- *
205
- * This function returns true if device at a given endpoint is
206
- * identifying.
207
- *
208
- * @param endpoint Zigbee endpoint number
209
- */
210
- bool emberAfIsDeviceIdentifying (chip::EndpointId endpoint);
211
-
212
- /* * @} END Device Control */
213
-
214
199
/* * @name Miscellaneous */
215
200
// @{
216
201
Original file line number Diff line number Diff line change 32
32
// TODO: figure out a clear path for compile-time codegen
33
33
#include < app/PluginApplicationCallbacks.h>
34
34
35
- #ifdef MATTER_DM_PLUGIN_GROUPS_SERVER
36
- #include < app/clusters/groups-server/groups-server.h>
37
- #endif // MATTER_DM_PLUGIN_GROUPS_SERVER
38
-
39
35
using namespace chip ;
40
36
41
37
using chip::Protocols::InteractionModel::Status;
42
38
43
- // Is the device identifying?
44
- bool emberAfIsDeviceIdentifying (EndpointId endpoint)
45
- {
46
- #ifdef ZCL_USING_IDENTIFY_CLUSTER_SERVER
47
- uint16_t identifyTime;
48
- Status status = app::Clusters::Identify::Attributes::IdentifyTime::Get (endpoint, &identifyTime);
49
- return (status == Status::Success && 0 < identifyTime);
50
- #else
51
- return false ;
52
- #endif
53
- }
54
-
55
39
// Calculates difference. See EmberAfDifferenceType for the maximum data size
56
40
// that this function will support.
57
41
EmberAfDifferenceType emberAfGetDifference (uint8_t * pData, EmberAfDifferenceType value, uint8_t dataSize)
You can’t perform that action at this time.
0 commit comments