fix(ios): show FTMS trainers advertised as 16-bit UUID
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
import 'dart:convert';
|
||||
|
||||
import 'package:flutter_reactive_ble/flutter_reactive_ble.dart';
|
||||
|
||||
const String universalShifterControlServiceUuid =
|
||||
'0993826f-0ee4-4b37-9614-d13ecba4ffc2';
|
||||
const String universalShifterStatusCharacteristicUuid =
|
||||
@ -25,6 +27,10 @@ const String deviceInformationServiceUuid =
|
||||
const String firmwareRevisionCharacteristicUuid =
|
||||
'00002a26-0000-1000-8000-00805f9b34fb';
|
||||
|
||||
bool isFtmsUuid(Uuid uuid) {
|
||||
return uuid.expanded == Uuid.parse(ftmsServiceUuid).expanded;
|
||||
}
|
||||
|
||||
const int universalShifterDfuOpcodeStart = 0x01;
|
||||
const int universalShifterDfuOpcodeFinish = 0x02;
|
||||
const int universalShifterDfuOpcodeAbort = 0x03;
|
||||
|
||||
Reference in New Issue
Block a user