beginBlue method
dynamic
beginBlue()
Implementation
beginBlue() {
// myDevice = null;
FlutterBluePlus.setLogLevel(LogLevel.verbose, color: false);
// listen to *any device* connection state changes
FlutterBluePlus.events.onConnectionStateChanged.listen((event) {
print('${event.device} ${event.connectionState}');
});
isSupported().then((bool v) {
if (v) {
// 去监听蓝牙的开启关闭之类的状态
setMySubscription_FlutterBluePlus_adapterState();
}
});
}