Skip to content

Commit

Permalink
add callback in controller
Browse files Browse the repository at this point in the history
  • Loading branch information
pan-apple committed Jun 29, 2020
1 parent 7381326 commit 2882675
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/controller/CHIPDeviceController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 2882675

Please sign in to comment.