diff options
Diffstat (limited to 'src/BLEService.h')
-rw-r--r-- | src/BLEService.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/BLEService.h b/src/BLEService.h index b37092f..2b78e62 100644 --- a/src/BLEService.h +++ b/src/BLEService.h @@ -52,9 +52,6 @@ private: */ class BLEService { public: - BLEService(const char* uuid, uint32_t numHandles=10); - BLEService(BLEUUID uuid, uint32_t numHandles=10); - void addCharacteristic(BLECharacteristic* pCharacteristic); BLECharacteristic* createCharacteristic(const char* uuid, uint32_t properties); BLECharacteristic* createCharacteristic(BLEUUID uuid, uint32_t properties); @@ -69,6 +66,8 @@ public: uint16_t getHandle(); private: + BLEService(const char* uuid, uint32_t numHandles); + BLEService(BLEUUID uuid, uint32_t numHandles); friend class BLEServer; friend class BLEServiceMap; friend class BLEDescriptor; @@ -80,8 +79,7 @@ private: BLECharacteristic* m_lastCreatedCharacteristic; BLEServer* m_pServer; BLEUUID m_uuid; - char deleteMe[10]; - //FreeRTOS::Semaphore m_serializeMutex; + FreeRTOS::Semaphore m_semaphoreCreateEvt = FreeRTOS::Semaphore("CreateEvt"); FreeRTOS::Semaphore m_semaphoreStartEvt = FreeRTOS::Semaphore("StartEvt"); |