From 51d1cee3d70bac68e7bc735569e92bc584267f73 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Wed, 15 Nov 2023 10:22:01 +1100 Subject: Set up ldoc and lua-language-server, write some module stubs --- src/lua/stubs/bluetooth.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/lua/stubs/bluetooth.lua (limited to 'src/lua/stubs/bluetooth.lua') 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 -- cgit v1.2.3