mirror of
https://github.com/h2zero/esp-nimble-cpp.git
synced 2024-12-22 19:10:46 +01:00
Add documentation to NimBLEService::isStarted
This commit is contained in:
parent
a2a50957b1
commit
cabd48aef3
2 changed files with 10 additions and 1 deletions
|
@ -434,4 +434,13 @@ NimBLEServer* NimBLEService::getServer() {
|
|||
return NimBLEDevice::getServer();
|
||||
}// getServer
|
||||
|
||||
|
||||
/**
|
||||
* @brief Checks if the service has been started.
|
||||
* @return True if the service has been started.
|
||||
*/
|
||||
bool NimBLEService::isStarted() {
|
||||
return m_pSvcDef != nullptr;
|
||||
}
|
||||
|
||||
#endif /* CONFIG_BT_ENABLED && CONFIG_BT_NIMBLE_ROLE_PERIPHERAL */
|
||||
|
|
|
@ -44,7 +44,7 @@ public:
|
|||
uint16_t getHandle();
|
||||
std::string toString();
|
||||
void dump();
|
||||
bool isStarted() { return m_pSvcDef != nullptr; }
|
||||
bool isStarted();
|
||||
bool start();
|
||||
|
||||
NimBLECharacteristic* createCharacteristic(const char* uuid,
|
||||
|
|
Loading…
Reference in a new issue