forked from h2zero/esp-nimble-cpp
Implement client long read / write
Client will now read/write long characteristics and descriptors.
This commit is contained in:
1 parent
04b524d1f8
commit
59823b4bf0
4 files changed
+158
-104
No files matched your search
@@ -60,6 +60,7 @@ public:
|
||||
bool writeValue(uint8_t newValue, bool response = false);
|
||||
std::string toString();
|
||||
uint8_t* readRawData();
|
||||
size_t getDataLength();
|
||||
NimBLERemoteService* getRemoteService();
|
||||
|
||||
private:
|
||||
@@ -90,7 +91,8 @@ private:
|
||||
FreeRTOS::Semaphore m_semaphoreReadCharEvt = FreeRTOS::Semaphore("ReadCharEvt");
|
||||
FreeRTOS::Semaphore m_semaphoreWriteCharEvt = FreeRTOS::Semaphore("WriteCharEvt");
|
||||
std::string m_value;
|
||||
uint8_t* m_rawData = nullptr;
|
||||
uint8_t* m_rawData;
|
||||
size_t m_dataLen;
|
||||
notify_callback m_notifyCallback;
|
||||
|
||||
// We maintain a map of descriptors owned by this characteristic keyed by a string representation of the UUID.
|
||||
|
||||
Reference in new issue
Block a user