Remove task notification for server indications.

This resolves an issue when sending an indication from a callback that can cause the server to hang.
This commit is contained in:
h2zero committed 2021-05-17 14:08:02 -06:00
1 parent e45fb8616a
commit b62358a520
4 files changed
+72 -47

No files matched your search

+3
View File
@@ -77,6 +77,7 @@ private:
bool m_svcChanged;
NimBLEServerCallbacks* m_pServerCallbacks;
bool m_deleteCallbacks;
uint16_t m_indWait[CONFIG_BT_NIMBLE_MAX_CONNECTIONS];
std::vector<uint16_t> m_connectedPeersVec;
// uint16_t m_svcChgChrHdl; // Future use
@@ -86,6 +87,8 @@ private:
static int handleGapEvent(struct ble_gap_event *event, void *arg);
void resetGATT();
bool setIndicateWait(uint16_t conn_handle);
void clearIndicateWait(uint16_t conn_handle);
}; // NimBLEServer