aboutsummaryrefslogtreecommitdiff
path: root/src/Mgmt.h
diff options
context:
space:
mode:
authorPaul Nettle <nettlep@users.noreply.github.com>2019-01-07 12:08:31 -0600
committerGitHub <noreply@github.com>2019-01-07 12:08:31 -0600
commitcec6f34ed1119ec33c423d55264c1a968ec5e0cb (patch)
tree04bd1432e546cf14ab398042bf5cd63d08737f3c /src/Mgmt.h
parentMerge pull request #14 from br101/endian-fix (diff)
parentAdd setting of discoverable mode (diff)
downloadgobbledegook-cec6f34ed1119ec33c423d55264c1a968ec5e0cb.tar.gz
gobbledegook-cec6f34ed1119ec33c423d55264c1a968ec5e0cb.tar.bz2
gobbledegook-cec6f34ed1119ec33c423d55264c1a968ec5e0cb.zip
Merge pull request #13 from br101/disc-fix
Add setting of discoverable mode
Diffstat (limited to 'src/Mgmt.h')
-rw-r--r--src/Mgmt.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Mgmt.h b/src/Mgmt.h
index 196eb1a..1f746b5 100644
--- a/src/Mgmt.h
+++ b/src/Mgmt.h
@@ -190,6 +190,13 @@ struct Mgmt
// Returns true on success, otherwise false
bool setName(std::string name, std::string shortName);
+ // Sets discoverable mode
+ // 0x00 disables discoverable
+ // 0x01 enables general discoverable
+ // 0x02 enables limited discoverable
+ // Timeout is the time in seconds. For 0x02, the timeout value is required.
+ bool setDiscoverable(uint8_t disc, uint16_t timeout);
+
// Set a setting state to 'newState'
//
// Many settings are set the same way, this is just a convenience routine to handle them all
@@ -258,4 +265,4 @@ private:
static const uint16_t kDefaultControllerIndex = 0;
};
-}; // namespace ggk \ No newline at end of file
+}; // namespace ggk