summaryrefslogtreecommitdiffstats
path: root/api/direct_bt/DBTManager.hpp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-05-02 03:25:39 +0200
committerSven Gothel <[email protected]>2020-05-02 03:25:39 +0200
commitef962e04530ca0c98bbcff52359059d409dc9eff (patch)
tree56732fa463369d2464ea2e47e03ca77c71b35002 /api/direct_bt/DBTManager.hpp
parent6b7c067e29f8f81b80919c267beca1e05b098216 (diff)
GATTHandler/DBTManager Timeout/Error: Unique SIGINT handler; GATTHandler disconnect on l2cap- or send error
Unique SIGINT handler in DBTManager GATTHandler needs to disconnect l2cap connection to reach clean state if we have an invalid l2cap state (already closed) or a send error occured. TODO: Ringbuffer timout handling.
Diffstat (limited to 'api/direct_bt/DBTManager.hpp')
-rw-r--r--api/direct_bt/DBTManager.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/api/direct_bt/DBTManager.hpp b/api/direct_bt/DBTManager.hpp
index 812db1b1..3ff86ca3 100644
--- a/api/direct_bt/DBTManager.hpp
+++ b/api/direct_bt/DBTManager.hpp
@@ -66,6 +66,8 @@ namespace direct_bt {
MGMTEVT_RING_CAPACITY = 256
};
+ static const pid_t pidSelf;
+
private:
const BTMode btMode;
POctets rbuffer;