esp-nimble-cpp 2.3.0
|
L2CAP server class. More...
#include <NimBLEL2CAPServer.h>
Public Member Functions | |
NimBLEL2CAPChannel * | createService (const uint16_t psm, const uint16_t mtu, NimBLEL2CAPChannelCallbacks *callbacks) |
Register a new L2CAP service instance. | |
L2CAP server class.
Encapsulates a L2CAP server that can hold multiple services. Every service is represented by a channel object and an assorted set of callbacks.
NimBLEL2CAPChannel * NimBLEL2CAPServer::createService | ( | const uint16_t | psm, |
const uint16_t | mtu, | ||
NimBLEL2CAPChannelCallbacks * | callbacks | ||
) |
Register a new L2CAP service instance.
psm | The port multiplexor service number. |
mtu | The maximum transmission unit. |
callbacks | The callbacks for this service. |