NimBLE-Arduino 2.3.2
Loading...
Searching...
No Matches
NimBLEL2CAPServer.h
1//
2// (C) Dr. Michael 'Mickey' Lauer <mickey@vanille-media.de>
3//
4
5#ifndef NIMBLE_CPP_L2CAPSERVER_H_
6#define NIMBLE_CPP_L2CAPSERVER_H_
7#include "nimconfig.h"
8#if CONFIG_BT_ENABLED && CONFIG_BT_NIMBLE_L2CAP_COC_MAX_NUM
9
10# include "inttypes.h"
11# include <vector>
12
13class NimBLEL2CAPChannel;
14class NimBLEL2CAPChannelCallbacks;
15
22class NimBLEL2CAPServer {
23 public:
29 NimBLEL2CAPChannel* createService(const uint16_t psm, const uint16_t mtu, NimBLEL2CAPChannelCallbacks* callbacks);
30
31 private:
32 NimBLEL2CAPServer();
33 ~NimBLEL2CAPServer();
34 std::vector<NimBLEL2CAPChannel*> services;
35
36 friend class NimBLEL2CAPChannel;
37 friend class NimBLEDevice;
38};
39
40#endif // CONFIG_BT_ENABLED && CONFIG_BT_NIMBLE_L2CAP_COC_MAX_NUM
41#endif // NIMBLE_CPP_L2CAPSERVER_H_
A model of a BLE Device from which all the BLE roles are created.
Definition NimBLEDevice.h:122