mirror of
https://github.com/h2zero/esp-nimble-cpp.git
synced 2024-11-22 13:10:55 +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();
|
return NimBLEDevice::getServer();
|
||||||
}// 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 */
|
#endif /* CONFIG_BT_ENABLED && CONFIG_BT_NIMBLE_ROLE_PERIPHERAL */
|
||||||
|
|
|
@ -44,7 +44,7 @@ public:
|
||||||
uint16_t getHandle();
|
uint16_t getHandle();
|
||||||
std::string toString();
|
std::string toString();
|
||||||
void dump();
|
void dump();
|
||||||
bool isStarted() { return m_pSvcDef != nullptr; }
|
bool isStarted();
|
||||||
bool start();
|
bool start();
|
||||||
|
|
||||||
NimBLECharacteristic* createCharacteristic(const char* uuid,
|
NimBLECharacteristic* createCharacteristic(const char* uuid,
|
||||||
|
|
Loading…
Reference in a new issue