summaryrefslogtreecommitdiff
path: root/src/BLEService.h
diff options
context:
space:
mode:
authorkolban <kolban1@kolban.com>2017-10-13 10:52:17 -0500
committerkolban <kolban1@kolban.com>2017-10-13 10:52:17 -0500
commit34902f4e7fc6926a005a5ccfd4e530d6a6321613 (patch)
tree512593068ed656012ee31fced9526bff80ecad55 /src/BLEService.h
parentMerge pull request #5 from sebastiankliem/master (diff)
downloadthermostat-34902f4e7fc6926a005a5ccfd4e530d6a6321613.tar.gz
thermostat-34902f4e7fc6926a005a5ccfd4e530d6a6321613.tar.bz2
thermostat-34902f4e7fc6926a005a5ccfd4e530d6a6321613.zip
Sync update for 0.4.3 take 2
Diffstat (limited to 'src/BLEService.h')
-rw-r--r--src/BLEService.h10
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();