Skip to content

Commit

Permalink
feat: Complete all bluetooth events
Browse files Browse the repository at this point in the history
  • Loading branch information
reasje committed Jun 26, 2024
1 parent 00e7776 commit 5482ba4
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions logic/lib/src/domain/const/js_channel/js_channel_events.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,32 @@ class JSChannelEvents {
// bluetooth events
static const String requestDevice = 'requestDevice';

// bluetooth objects events
// Bluetooth objects events

// BluetoothDevice
static const String bluetoothDeviceWatchAdvertisements = 'BluetoothDevice.watchAdvertisements';
static const String bluetoothDeviceForget = 'BluetoothDevice.forget';

// BluetoothRemoteGATTService
static const String bluetoothRemoteGATTServiceGetCharacteristic = 'BluetoothRemoteGATTService.getCharacteristic';
static const String bluetoothRemoteGATTServiceGetCharacteristics = 'BluetoothRemoteGATTService.getCharacteristics';
static const String bluetoothRemoteGATTServiceGetIncludedService = 'BluetoothRemoteGATTService.getIncludedService';
static const String bluetoothRemoteGATTServiceGetIncludedServices = 'BluetoothRemoteGATTService.getIncludedServices';

// BluetoothRemoteGATTServer
static const String bluetoothRemoteGATTServerConnect ='BluetoothRemoteGATTServer.connect';
static const String bluetoothRemoteGATTServerDisconnect ='BluetoothRemoteGATTServer.disconnect';
static const String bluetoothRemoteGATTServerGetPrimaryService = 'BluetoothRemoteGATTServer.getPrimaryService';
// .disconnect
// .getPrimaryServices
static const String bluetoothRemoteGATTServerGetPrimaryServices = 'BluetoothRemoteGATTServer.getPrimaryServices';

// BluetoothRemoteGATTCharacteristic
static const String bluetoothRemoteGATTCharacteristicStartNotifications = 'BluetoothRemoteGATTCharacteristic.startNotifications';
static const String bluetoothRemoteGATTCharacteristicStopNotifications = 'BluetoothRemoteGATTCharacteristic.stopNotifications';
static const String bluetoothRemoteGATTCharacteristicGetDescriptor = 'BluetoothRemoteGATTCharacteristic.getDescriptor';
static const String bluetoothRemoteGATTCharacteristicGetDescriptors = 'BluetoothRemoteGATTCharacteristic.getDescriptors';
static const String bluetoothRemoteGATTCharacteristicReadValue = 'BluetoothRemoteGATTCharacteristic.readValue';
static const String bluetoothRemoteGATTCharacteristicWriteValue = 'BluetoothRemoteGATTCharacteristic.writeValue';
static const String bluetoothRemoteGATTCharacteristicWriteValueWithResponse = 'BluetoothRemoteGATTCharacteristic.writeValueWithResponse';
static const String bluetoothRemoteGATTCharacteristicWriteValueWithoutResponse = 'BluetoothRemoteGATTCharacteristic.writeValueWithoutResponse';

}

0 comments on commit 5482ba4

Please sign in to comment.