esp-nimble-cpp 2.3.0
|
Callbacks base class for the L2CAP channel. More...
#include <NimBLEL2CAPChannel.h>
Public Member Functions | |
virtual bool | shouldAcceptConnection (NimBLEL2CAPChannel *channel) |
virtual void | onConnect (NimBLEL2CAPChannel *channel, uint16_t negotiatedMTU) |
virtual void | onRead (NimBLEL2CAPChannel *channel, std::vector< uint8_t > &data) |
virtual void | onDisconnect (NimBLEL2CAPChannel *channel) |
Callbacks base class for the L2CAP channel.
|
inlinevirtual |
Called after a connection has been made. Default implementation does nothing.
|
inlinevirtual |
Called after the channel has been disconnected. Default implementation does nothing.
|
inlinevirtual |
Called when data has been read from the channel. Default implementation does nothing.
|
inlinevirtual |
Called when the client attempts to open a channel on the server. You can choose to accept or deny the connection. Default implementation returns true.