summaryrefslogtreecommitdiff
path: root/luals-stubs/bluetooth.lua
diff options
context:
space:
mode:
Diffstat (limited to 'luals-stubs/bluetooth.lua')
-rw-r--r--luals-stubs/bluetooth.lua13
1 files changed, 11 insertions, 2 deletions
diff --git a/luals-stubs/bluetooth.lua b/luals-stubs/bluetooth.lua
index a2dd476d..d362974a 100644
--- a/luals-stubs/bluetooth.lua
+++ b/luals-stubs/bluetooth.lua
@@ -5,8 +5,17 @@
--- @class bluetooth
--- @field enabled Property Whether or not the Bluetooth stack is currently enabled. This property is writeable, and can be used to enable or disable Bluetooth.
--- @field connected Property Whether or not there is an active connection to another Bluetooth device.
---- @field paired_device Property The device that is currently paired. The bluetooth stack will automatically connected to this device if possible.
---- @field devices Property Devices nearby that have been discovered.
+--- @field connecting Property Whether or not we are currently connecting to the paired device.
+--- @field discovering Property Whether or not we are actively scanning for new devices.
+--- @field paired_device Property The device that is currently paired. The bluetooth stack will automatically connect to this device if possible.
+--- @field discovered_devices Property Devices nearby that have been discovered.
+--- @field known_devices Property Devices that have previously been paired.
local bluetooth = {}
+--- Enables Bluetooth, this is the same as bluetooth.enabled:set(true)
+function bluetooth.enable() end
+
+--- Disables Bluetooth, this is the same as bluetooth.enabled:set(false)
+function bluetooth.disable() end
+
return bluetooth