Skip to content

Commit 1463324

Browse files
pankorepull[bot]
authored andcommitted
Add identify support for Ameba (#11038)
1 parent 9f9ae06 commit 1463324

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

examples/all-clusters-app/ameba/main/chipinterface.cpp

+15
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include "DeviceCallbacks.h"
55
#include "Server.h"
66

7+
#include <app/clusters/identify-server/identify-server.h>
78
#include <platform/CHIPDeviceLayer.h>
89
#include <support/CHIPMem.h>
910

@@ -15,6 +16,20 @@ using namespace ::chip;
1516
using namespace ::chip::DeviceManager;
1617
using namespace ::chip::DeviceLayer;
1718

19+
Identify gIdentify0 = {
20+
chip::EndpointId{ 0 },
21+
[](Identify *) { ChipLogProgress(Zcl, "onIdentifyStart"); },
22+
[](Identify *) { ChipLogProgress(Zcl, "onIdentifyStop"); },
23+
EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED,
24+
};
25+
26+
Identify gIdentify1 = {
27+
chip::EndpointId{ 1 },
28+
[](Identify *) { ChipLogProgress(Zcl, "onIdentifyStart"); },
29+
[](Identify *) { ChipLogProgress(Zcl, "onIdentifyStop"); },
30+
EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED,
31+
};
32+
1833
static DeviceCallbacks EchoCallbacks;
1934

2035
extern "C" void ChipTest(void)

0 commit comments

Comments
 (0)