Ble notification/indication status and timeout (#2998)

* add timed wait

* Added Notification/Indication data and status callbacks

* imply null-object pattern for BLE callback
This commit is contained in:
Roman Savrulin
2019-08-20 17:15:30 +03:00
committed by Me No Dev
parent 03066e42ef
commit 5137fc5c80
4 changed files with 105 additions and 12 deletions

View File

@ -40,6 +40,8 @@ public:
bool take(uint32_t timeoutMs, std::string owner = "<Unknown>");
std::string toString();
uint32_t wait(std::string owner = "<Unknown>");
bool timedWait(std::string owner = "<Unknown>", uint32_t timeoutMs = portMAX_DELAY);
uint32_t value(){ return m_value; };
private:
SemaphoreHandle_t m_semaphore;