diff options
author | Bruno Randolf <br1@einfach.org> | 2019-01-05 18:34:13 +0000 |
---|---|---|
committer | Bruno Randolf <br1@einfach.org> | 2019-01-05 18:36:39 +0000 |
commit | 30436c84b2c35982c41c33a7adfb0307884f5ee9 (patch) | |
tree | 540f790b12ca77bac7099d0885148e11fcb54ab4 /src/Server.h | |
parent | Improved handling of connection counts dealing with latent disconnects on sta... (diff) | |
download | gobbledegook-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.h')
-rw-r--r-- | src/Server.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Server.h b/src/Server.h index d6154dc..8a5031e 100644 --- a/src/Server.h +++ b/src/Server.h @@ -84,6 +84,9 @@ struct Server // Returns the requested setting the connectable state (true = enabled, false = disabled) bool getEnableConnectable() const { return enableConnectable; } + // Returns the requested setting the discoverable state (true = enabled, false = disabled) + bool getEnableDiscoverable() const { return enableDiscoverable; } + // Returns the requested setting the LE advertising state (true = enabled, false = disabled) bool getEnableAdvertising() const { return enableAdvertising; } @@ -201,6 +204,9 @@ private: // Connectable requested state bool enableConnectable; + // Discoverable requested state + bool enableDiscoverable; + // LE advertising requested state bool enableAdvertising; |