Skip to content

Commit

Permalink
Fix crash in identify-server.cpp
Browse files Browse the repository at this point in the history
Reference from aea917b

Add identify support ot linux/all-cluster-app and fix initialization (project-chip#10907)
  • Loading branch information
hanksuu committed Oct 27, 2021
1 parent b39aa88 commit af41d56
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions examples/all-clusters-app/ambd/main/chipinterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include "DeviceCallbacks.h"
#include "Server.h"

#include <app/clusters/identify-server/identify-server.h>
#include <platform/CHIPDeviceLayer.h>
#include <credentials/DeviceAttestationCredsProvider.h>
#include <credentials/examples/DeviceAttestationCredsExample.h>
Expand Down Expand Up @@ -234,6 +235,21 @@ extern "C" void DCTTest(void)
printf("MfrDeviceId exist = %d\n",_exist);
}

Identify gIdentify0 = {
chip::EndpointId{ 0 },
[](Identify *) { ChipLogProgress(Zcl, "onIdentifyStart"); },
[](Identify *) { ChipLogProgress(Zcl, "onIdentifyStop"); },
EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED,
};

Identify gIdentify1 = {
chip::EndpointId{ 1 },
[](Identify *) { ChipLogProgress(Zcl, "onIdentifyStart"); },
[](Identify *) { ChipLogProgress(Zcl, "onIdentifyStop"); },
EMBER_ZCL_IDENTIFY_IDENTIFY_TYPE_VISIBLE_LED,
};


extern "C" void ChipTest(void)
{
printf("In ChipTest()\r\n");
Expand Down

0 comments on commit af41d56

Please sign in to comment.