Skip to content

Commit c8dd39b

Browse files
committed
feat: Dispatch bluetooth event
1 parent 7809449 commit c8dd39b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

logic/assets/js/bluetooth/bluetooth.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,19 @@ class AXSBluetooth {
373373
}
374374
}
375375

376+
dispatchBluetoothEvent(eventName) {
377+
console.log(
378+
"AXSBluetooth:dispatchBluetoothEvent ",
379+
" ",
380+
eventName
381+
);
382+
this.dispatchEvent(new Event(eventName));
383+
console.log(
384+
"AXSBluetooth:dispatchBluetoothEvent:eventName ",
385+
eventName
386+
);
387+
}
388+
376389
updateCharacteristicValue(characteristicUUID, value) {
377390
console.log(
378391
"AXSBluetooth:updateCharacteristicValue ",

0 commit comments

Comments
 (0)