We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8676f9 commit de9c94aCopy full SHA for de9c94a
example/lib/main.dart
@@ -60,11 +60,10 @@ class _SimpleErgViewState extends State<SimpleErgView> {
60
61
scanSub = bleManager.startErgScan().listen((erg) {
62
//Scan one peripheral and stop scanning
63
- print(
64
- "Scanned Peripheral ${erg.peripheral!.name}, RSSI ${erg.peripheral!.rssi}");
+ print("Scanned Peripheral ${erg.name}");
65
66
- var pepname = erg.peripheral!.name;
67
- if (pepname != null && pepname.contains("PM5")) {
+ var pepname = erg.name;
+ if (pepname.contains("PM5")) {
68
targetDevice = erg;
69
setState(() {
70
displayText = "Found an erg";
0 commit comments