diff options
Diffstat (limited to 'src/BLEService.h')
-rw-r--r-- | src/BLEService.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/BLEService.h b/src/BLEService.h index 86d0776..9a93aff 100644 --- a/src/BLEService.h +++ b/src/BLEService.h @@ -52,8 +52,8 @@ private: */ class BLEService { public: - BLEService(const char* uuid); - BLEService(BLEUUID uuid); + 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); @@ -79,10 +79,10 @@ private: BLECharacteristic* m_lastCreatedCharacteristic; BLEServer* m_pServer; //FreeRTOS::Semaphore m_serializeMutex; - FreeRTOS::Semaphore m_semaphoreAddCharEvt = FreeRTOS::Semaphore("AddCharEvt"); - FreeRTOS::Semaphore m_semaphoreCreateEvt = FreeRTOS::Semaphore("CreateEvt"); - FreeRTOS::Semaphore m_semaphoreStartEvt = FreeRTOS::Semaphore("StartEvt"); + FreeRTOS::Semaphore m_semaphoreCreateEvt = FreeRTOS::Semaphore("CreateEvt"); + FreeRTOS::Semaphore m_semaphoreStartEvt = FreeRTOS::Semaphore("StartEvt"); BLEUUID m_uuid; + uint32_t m_numHandles; uint16_t getHandle(); BLECharacteristic* getLastCreatedCharacteristic(); |