Implement readRSSI on Android and Darwin (#203)

This commit is contained in:
EricKwok
2026-01-06 00:25:19 +08:00
committed by Foti Dim
parent a5b6af6168
commit 1adfa9b485
25 changed files with 456 additions and 91 deletions
+6
View File
@@ -113,6 +113,12 @@ class MockUniversalBle extends UniversalBlePlatform {
return 512;
}
@override
Future<int> readRssi(String deviceId) async {
await Future.delayed(const Duration(milliseconds: 500));
return -50; // Mock RSSI value in dBm
}
@override
Future<void> setNotifiable(String deviceId, String service,
String characteristic, BleInputProperty bleInputProperty) async {}