File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
features/FEATURE_BLE/targets/TARGET_CORDIO Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 32
32
#define MAX_CCCD_CNT 20
33
33
34
34
namespace ble {
35
+
36
+ // fwd declaration of CordioAttClient and BLE
37
+ namespace pal {
38
+ namespace vendor {
39
+ namespace cordio {
40
+ class CordioAttClient ;
41
+ }
42
+ }
43
+ }
44
+
35
45
namespace vendor {
36
46
namespace cordio {
37
47
@@ -41,6 +51,8 @@ namespace cordio {
41
51
class GattServer : public ::GattServer,
42
52
public pal::SigningEventMonitor
43
53
{
54
+ friend ble::pal::vendor::cordio::CordioAttClient;
55
+
44
56
public:
45
57
/* *
46
58
* Return the singleton of the Cordio implementation of ::GattServer.
Original file line number Diff line number Diff line change 17
17
#ifndef CORDIO_PAL_ATT_CLIENT_
18
18
#define CORDIO_PAL_ATT_CLIENT_
19
19
20
+ #include " CordioGattServer.h"
20
21
#include " ble/pal/AttClient.h"
21
22
#include " ble/pal/SimpleAttServerMessage.h"
22
23
#include " att_api.h"
@@ -349,6 +350,9 @@ class CordioAttClient : public ::ble::pal::AttClient {
349
350
return ;
350
351
}
351
352
}
353
+
354
+ // pass events not handled to the server side
355
+ ble::vendor::cordio::GattServer::getInstance ().att_cb (event);
352
356
}
353
357
354
358
private:
You can’t perform that action at this time.
0 commit comments