fix(ios): show FTMS trainers advertised as 16-bit UUID
This commit is contained in:
@ -1,7 +1,16 @@
|
||||
import 'package:abawo_bt_app/model/shifter_types.dart';
|
||||
import 'package:flutter_reactive_ble/flutter_reactive_ble.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
void main() {
|
||||
group('isFtmsUuid', () {
|
||||
test('matches 16-bit and expanded FTMS UUIDs', () {
|
||||
expect(isFtmsUuid(Uuid.parse('1826')), isTrue);
|
||||
expect(isFtmsUuid(Uuid.parse(ftmsServiceUuid)), isTrue);
|
||||
expect(isFtmsUuid(Uuid.parse('180f')), isFalse);
|
||||
});
|
||||
});
|
||||
|
||||
group('CentralStatus.fromBytes', () {
|
||||
test('decodes status with FTMS ready', () {
|
||||
final status = CentralStatus.fromBytes(
|
||||
|
||||
Reference in New Issue
Block a user