summaryrefslogtreecommitdiff
path: root/luals-stubs/bluetooth.lua
diff options
context:
space:
mode:
authorailurux <ailuruxx@gmail.com>2024-08-29 15:20:22 +1000
committerailurux <ailuruxx@gmail.com>2024-08-29 15:20:22 +1000
commit96a224c0df4f647b3e5dbbcbbedad3a1d38470ba (patch)
tree8960865293dde6f9844b7b1a42d5775d5dceceb2 /luals-stubs/bluetooth.lua
parent3421bd652c39b253872e43d3b6e43664bd0b66e2 (diff)
downloadtangara-fw-96a224c0df4f647b3e5dbbcbbedad3a1d38470ba.tar.gz
Lua API improvements and fixes
Co-authored-by: jacqueline <me@jacqueline.id.au>
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