Created
May 13, 2020 14:50
-
-
Save epietrowicz/ce312f731dc20d34eba1244422e4fb8f to your computer and use it in GitHub Desktop.
scanner
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void _incrementCounter() { | |
flutterBlue.scanResults.listen((List<ScanResult> results) { | |
for (ScanResult result in results) { | |
if (result.device.name == "customGlow") { | |
_connectDevice(result.device); | |
} | |
} | |
}); | |
flutterBlue.startScan(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment