esp-nimble-cpp 2.3.0
Loading...
Searching...
No Matches
NimBLEL2CAPServer.h
1//
2// (C) Dr. Michael 'Mickey' Lauer <mickey@vanille-media.de>
3//
4#ifndef NIMBLEL2CAPSERVER_H
5#define NIMBLEL2CAPSERVER_H
6#pragma once
7
8#include "inttypes.h"
9#include <vector>
10
13
21 public:
27 NimBLEL2CAPChannel* createService(const uint16_t psm, const uint16_t mtu, NimBLEL2CAPChannelCallbacks* callbacks);
28
29 private:
32 std::vector<NimBLEL2CAPChannel*> services;
33
34 friend class NimBLEL2CAPChannel;
35 friend class NimBLEDevice;
36};
37
38#endif
A model of a BLE Device from which all the BLE roles are created.
Definition NimBLEDevice.h:122
Callbacks base class for the L2CAP channel.
Definition NimBLEL2CAPChannel.h:104
Encapsulates a L2CAP channel.
Definition NimBLEL2CAPChannel.h:38
L2CAP server class.
Definition NimBLEL2CAPServer.h:20
NimBLEL2CAPChannel * createService(const uint16_t psm, const uint16_t mtu, NimBLEL2CAPChannelCallbacks *callbacks)
Register a new L2CAP service instance.
Definition NimBLEL2CAPServer.cpp:22