WIP updates

This commit is contained in:
Sacha Weatherstone
2022-11-27 22:50:46 +10:00
parent a9561fe622
commit e457cef3da
79 changed files with 2100 additions and 1284 deletions
@@ -29,7 +29,7 @@ export const BLE = (): JSX.Element => {
setSelectedDevice(id);
const connection = new IBLEConnection(id);
await connection.connect({
device: BLEDevice,
device: BLEDevice
});
device.addConnection(connection);
subscribeAll(device, connection);
@@ -58,7 +58,7 @@ export const BLE = (): JSX.Element => {
onClick={() => {
void navigator.bluetooth
.requestDevice({
filters: [{ services: [Constants.serviceUUID] }],
filters: [{ services: [Constants.serviceUUID] }]
})
.then((device) => {
const exists = bleDevices.findIndex((d) => d.id === device.id);