Skip to content

Instantly share code, notes, and snippets.

@epietrowicz
Created May 13, 2020 14:50
Show Gist options
  • Save epietrowicz/ce312f731dc20d34eba1244422e4fb8f to your computer and use it in GitHub Desktop.
Save epietrowicz/ce312f731dc20d34eba1244422e4fb8f to your computer and use it in GitHub Desktop.
scanner
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