fix(ios): show FTMS trainers advertised as 16-bit UUID

This commit is contained in:
2026-04-28 20:25:30 +02:00
parent ac93c01cea
commit 96416a2f73
3 changed files with 22 additions and 4 deletions

View File

@ -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;