Skip to content

Commit 01e3a00

Browse files
committed
Cordio: register server authorization callback.
1 parent 549a513 commit 01e3a00

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

features/FEATURE_BLE/targets/TARGET_CORDIO/CordioGattServer.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,15 @@ class CordioAttClient;
4545
namespace vendor {
4646
namespace cordio {
4747

48+
class BLE;
49+
4850
/**
4951
* Cordio implementation of ::GattServer
5052
*/
5153
class GattServer : public ::GattServer,
5254
public pal::SigningEventMonitor
5355
{
56+
friend ble::vendor::cordio::BLE;
5457
friend ble::pal::vendor::cordio::CordioAttClient;
5558

5659
public:

features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioBLE.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ void BLE::stack_setup()
356356
AttsInit();
357357
AttsIndInit();
358358
AttsSignInit();
359+
AttsAuthorRegister(GattServer::atts_auth_cb);
359360
AttcInit();
360361
AttcSignInit();
361362

0 commit comments

Comments
 (0)