* @brief Return a string representation of this client. * @return A string representation of this client. */
| 419 | * @return A string representation of this client. |
| 420 | */ |
| 421 | String BLEClient::toString() { |
| 422 | String res = "peer address: " + m_peerAddress.toString(); |
| 423 | res += "\nServices:\n"; |
| 424 | for (auto &myPair : m_servicesMap) { |
| 425 | res += myPair.second->toString() + "\n"; |
| 426 | // myPair.second is the value |
| 427 | } |
| 428 | return res; |
| 429 | } // toString |
| 430 | |
| 431 | void BLEClientCallbacks::onConnect(BLEClient *pClient) { |
| 432 | log_d("BLEClientCallbacks", "onConnect: default"); |
no outgoing calls
no test coverage detected