mirror of
https://github.com/h2zero/esp-nimble-cpp.git
synced 2026-07-06 08:20:57 +02:00
Add NimBLEConnInfo::toString method.
This commit is contained in:
@@ -16,7 +16,7 @@ static NimBLEServer* pServer;
|
||||
** Remove as you see fit for your needs */
|
||||
class ServerCallbacks : public NimBLEServerCallbacks {
|
||||
void onConnect(NimBLEServer* pServer, NimBLEConnInfo& connInfo) override {
|
||||
printf("Client address: %s\n", connInfo.getAddress().toString().c_str());
|
||||
printf("Client connected:\n%s", connInfo.toString().c_str());
|
||||
|
||||
/**
|
||||
* We can use the connection handle here to ask for different connection parameters.
|
||||
|
||||
Reference in New Issue
Block a user