Skip to content

Commit

Permalink
Initialize CHIPDevice members (#4671)
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 authored Feb 4, 2021
1 parent e837757 commit e22a52f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/controller/CHIPDevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -280,25 +280,25 @@ class DLL_EXPORT Device
Inet::IPAddress mDeviceAddr;

/* Port on which the CHIP device is receiving messages. Typically it is CHIP_PORT */
uint16_t mDevicePort;
uint16_t mDevicePort = CHIP_PORT;

/* Local network interface that should be used to communicate with the device */
Inet::InterfaceId mInterface;
Inet::InterfaceId mInterface = INET_NULL_INTERFACEID;

Inet::InetLayer * mInetLayer;
Inet::InetLayer * mInetLayer = nullptr;

bool mActive;
ConnectionState mState;
bool mActive = false;
ConnectionState mState = ConnectionState::NotConnected;

PASESessionSerializable mPairing;

DeviceStatusDelegate * mStatusDelegate;
DeviceStatusDelegate * mStatusDelegate = nullptr;

SecureSessionMgr * mSessionManager;
SecureSessionMgr * mSessionManager = nullptr;

DeviceTransportMgr * mTransportMgr;
DeviceTransportMgr * mTransportMgr = nullptr;

app::CommandSender * mCommandSender;
app::CommandSender * mCommandSender = nullptr;

SecureSessionHandle mSecureSession = {};

Expand Down

0 comments on commit e22a52f

Please sign in to comment.