Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

Commit f6bfdce

Browse files
author
Jay Logue
committed
Accessor functions for SoftDevice advertising handle
-- Added accessor functions to the Nordic version of the BLEManagerImpl class that allow the application to get and set the SoftDevice BLE advertising handle.
1 parent c63e5a1 commit f6bfdce

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/adaptations/device-layer/include/Weave/DeviceLayer/nRF5/BLEManagerImpl.h

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,15 @@ class BLEManagerImpl final
4848
// the implementation methods provided by this class.
4949
friend BLEManager;
5050

51+
public:
52+
53+
// ===== Platform-specific members available for use by the application.
54+
55+
uint8_t GetAdvertisingHandle(void);
56+
void SetAdvertisingHandle(uint8_t handle);
57+
58+
private:
59+
5160
// ===== Members that implement the BLEManager internal interface.
5261

5362
WEAVE_ERROR _Init(void);
@@ -155,6 +164,16 @@ inline BLEManagerImpl & BLEMgrImpl(void)
155164
return BLEManagerImpl::sInstance;
156165
}
157166

167+
inline uint8_t BLEManagerImpl::GetAdvertisingHandle(void)
168+
{
169+
return mAdvHandle;
170+
}
171+
172+
inline void BLEManagerImpl::SetAdvertisingHandle(uint8_t handle)
173+
{
174+
mAdvHandle = handle;
175+
}
176+
158177
inline ::nl::Ble::BleLayer * BLEManagerImpl::_GetBleLayer() const
159178
{
160179
return (BleLayer *)(this);

0 commit comments

Comments
 (0)