summaryrefslogtreecommitdiff
path: root/src/lua/stubs/bluetooth.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/stubs/bluetooth.lua')
-rw-r--r--src/lua/stubs/bluetooth.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lua/stubs/bluetooth.lua b/src/lua/stubs/bluetooth.lua
new file mode 100644
index 00000000..f819c2f1
--- /dev/null
+++ b/src/lua/stubs/bluetooth.lua
@@ -0,0 +1,14 @@
+--- Properties and functions for handling Bluetooth connectivity
+-- @module bluetooth
+
+local bluetooth = {}
+
+-- Whether or not the Bluetooth stack is currently enabled. This property is writeable, and can be used to enable or disable Bluetooth.
+-- @treturn types.Property a boolean property
+function bluetooth.enabled() end
+
+--- Whether or not there is an active connection to another Bluetooth device.
+-- @treturn types.Property a boolean property
+function bluetooth.connected() end
+
+return bluetooth