aboutsummaryrefslogtreecommitdiff
path: root/src/Server.cpp
diff options
context:
space:
mode:
authorBruno Randolf <br1@einfach.org>2019-01-05 18:34:13 +0000
committerBruno Randolf <br1@einfach.org>2019-01-05 18:36:39 +0000
commit30436c84b2c35982c41c33a7adfb0307884f5ee9 (patch)
tree540f790b12ca77bac7099d0885148e11fcb54ab4 /src/Server.cpp
parentImproved handling of connection counts dealing with latent disconnects on sta... (diff)
downloadgobbledegook-30436c84b2c35982c41c33a7adfb0307884f5ee9.tar.gz
gobbledegook-30436c84b2c35982c41c33a7adfb0307884f5ee9.tar.bz2
gobbledegook-30436c84b2c35982c41c33a7adfb0307884f5ee9.zip
Add setting of discoverable mode
This is necessary for the advertisements to be in "LE General Discoverable Mode" which makes them visible (especially to other Linux boxes). Signed-off-by: Bruno Randolf <br1@einfach.org>
Diffstat (limited to 'src/Server.cpp')
-rw-r--r--src/Server.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Server.cpp b/src/Server.cpp
index 87b3279..47a74da 100644
--- a/src/Server.cpp
+++ b/src/Server.cpp
@@ -243,6 +243,7 @@ Server::Server(const std::string &serviceName, const std::string &advertisingNam
enableBREDR = false;
enableSecureConnection = false;
enableConnectable = true;
+ enableDiscoverable = true;
enableAdvertising = true;
enableBondable = false;