diff options
author | Sven Gothel <[email protected]> | 2020-08-26 04:44:10 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-08-26 04:44:10 +0200 |
commit | 4e175c353bc7d6d8634c4e232b49c8e10d942d28 (patch) | |
tree | 0992da53a58327b6b33d8bf75078fda47603f60e /api/direct_bt/GATTHandler.hpp | |
parent | 2c987fa7cc078af1be4389a489bbbe2b164f5200 (diff) |
GATTHandler::Defaults: Use 'GATT' prefix instead of 'L2CAP' for GATT over L2CAP only.
Diffstat (limited to 'api/direct_bt/GATTHandler.hpp')
-rw-r--r-- | api/direct_bt/GATTHandler.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/api/direct_bt/GATTHandler.hpp b/api/direct_bt/GATTHandler.hpp index 25546f62..28647bb1 100644 --- a/api/direct_bt/GATTHandler.hpp +++ b/api/direct_bt/GATTHandler.hpp @@ -79,10 +79,10 @@ namespace direct_bt { /** 3s poll timeout for l2cap reader thread */ L2CAP_READER_THREAD_POLL_TIMEOUT = 3000, - /** 500ms timeout for l2cap command replies */ - L2CAP_COMMAND_REPLY_TIMEOUT = 500, + /** 500ms timeout for GATT read command replies */ + GATT_READ_COMMAND_REPLY_TIMEOUT = 500, /** 2500ms timeout for l2cap _initial_ command reply, long timeout. */ - L2CAP_INITIAL_COMMAND_REPLY_TIMEOUT = 2500, + GATT_INITIAL_COMMAND_REPLY_TIMEOUT = 2500, /** Medium ringbuffer capacity... */ ATTPDU_RING_CAPACITY = 128 @@ -139,7 +139,7 @@ namespace direct_bt { uint16_t exchangeMTU(const uint16_t clientMaxMTU, const int timeout); public: - GATTHandler(const std::shared_ptr<DBTDevice> & device, const int replyTimeoutMS = number(Defaults::L2CAP_COMMAND_REPLY_TIMEOUT)); + GATTHandler(const std::shared_ptr<DBTDevice> & device, const int replyTimeoutMS = number(Defaults::GATT_READ_COMMAND_REPLY_TIMEOUT)); ~GATTHandler(); |