summaryrefslogtreecommitdiffstats
path: root/src/js/agl_stubs_bluetooth.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/agl_stubs_bluetooth.js')
-rw-r--r--src/js/agl_stubs_bluetooth.js29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/js/agl_stubs_bluetooth.js b/src/js/agl_stubs_bluetooth.js
new file mode 100644
index 0000000..34b92e0
--- /dev/null
+++ b/src/js/agl_stubs_bluetooth.js
@@ -0,0 +1,29 @@
+export function managed_objects() {
+ return new Promise((resolve, reject) => {
+ resolve({
+ devices: []
+ })
+ });
+}
+
+
+let _powered = false
+
+export function adapter_state(new_state) {
+ return new Promise((resolve, reject) => {
+ if (typeof new_state !== undefined)
+ _powered = new_state.powered;
+ resolve({
+ powered: _powered
+ });
+ });
+}
+
+export function pair() {
+}
+
+export function connect() {
+}
+
+export function disconnect() {
+} \ No newline at end of file