feat: working connection, conn setting, and gear ratio setting for universal shifters
This commit is contained in:
@ -1 +1,21 @@
|
||||
const abawoServiceBtUUID = '0993826f-0ee4-4b37-9614-d13ecba4ffc2';
|
||||
import 'package:flutter_reactive_ble/flutter_reactive_ble.dart';
|
||||
|
||||
const abawoServiceBtUUIDPrefix = '0993826f-0ee4-4b37-9614';
|
||||
const abawoUniversalShiftersServiceBtUUID =
|
||||
'0993826f-0ee4-4b37-9614-d13ecba4ffc2';
|
||||
|
||||
bool isAbawoDeviceGuid(Uuid guid) {
|
||||
return guid
|
||||
.toString()
|
||||
.toLowerCase()
|
||||
.replaceAll('-', '')
|
||||
.startsWith(abawoServiceBtUUIDPrefix.toLowerCase().replaceAll('-', ''));
|
||||
}
|
||||
|
||||
bool isAbawoUniversalShiftersDeviceGuid(Uuid guid) {
|
||||
return guid == Uuid.parse(abawoUniversalShiftersServiceBtUUID);
|
||||
}
|
||||
|
||||
bool isConnectableAbawoDeviceGuid(Uuid guid) {
|
||||
return isAbawoUniversalShiftersDeviceGuid(guid);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user