From 28826757393fe8d73e394e90079a29c1a047ba58 Mon Sep 17 00:00:00 2001 From: Pankaj Garg Date: Fri, 26 Jun 2020 22:33:46 +0000 Subject: [PATCH] add callback in controller --- src/controller/CHIPDeviceController.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/controller/CHIPDeviceController.cpp b/src/controller/CHIPDeviceController.cpp index 1a2bd792f3ebfd..56adea0fb23046 100644 --- a/src/controller/CHIPDeviceController.cpp +++ b/src/controller/CHIPDeviceController.cpp @@ -151,6 +151,8 @@ CHIP_ERROR ChipDeviceController::ConnectDevice(NodeId remoteDeviceId, IPAddress err = mSessionManager->Init(mLocalDeviceId, mInetLayer, Transport::UdpListenParameters().SetAddressType(deviceAddr.Type())); SuccessOrExit(err); + mSessionManager->SetDelegate(&mCallback); + // connected state before 'OnConnect' so that key exchange is accepted mConState = kConnectionState_Connected;