Comments (1)
FlutterBlueElves.instance
.startScan(500000, isAllowDuplicates: true)
.listen((event) {
setState(() {
final existingDeviceIndex =
_persistentScanList.lastIndexWhere(
//LAST INDEXİ ALACAK ŞEKİLDE GÜNCELLENDİ
(element) => element.macAddress == event.macAddress,
);
if (existingDeviceIndex != -1) {
// Eğer cihaz listede varsa, güncel zamanı kaydet
_persistentScanList[existingDeviceIndex] = event;
} else {
// Eğer cihaz listede yoksa, yeni cihaz olarak ekle
_persistentScanList.add(event);
}
if (event.macAddress != null && ///YOU CAN CHECK THİS!!!!
event.name != null &&
int.tryParse(event.name!) != null) {
_scanResultList.insert(0, event);
}
ParseDataForNode();
//logScanResults();
//sad();
});
}).onDone(() {
setState(() {
_isScaning = false;
_persistentScanList.clear();
});
});
}
}
},
from flutter_blue_elves.
Related Issues (20)
- 蓝牙扫描过程中,操作关掉蓝牙,后面出现崩溃 HOT 1
- How I can set auto connect flag true? HOT 1
- Device is not sending any data with buffers > 23 bytes HOT 1
- 已经解决了,请忽略
- 如何通过蓝牙可以获取外设蓝牙设备的电量(比如蓝牙钥匙) HOT 1
- 如果获取指令执行后数据
- 怎么触发,配对请求?
- 是否支持IOS获取广播数据
- nothing
- 往蓝牙写入长串特征值,收不到蓝牙对应的通知 HOT 1
- Connect to start background cillecting
- scan周围的蓝牙设备,但是手机和音箱都扫描不到,测试其他的插件也不行,flutter不能链接蓝牙音箱么?
- Value is not updating when characteristics value is changed
- iOS values not receiving
- deviceSignalResultStream 只能在页面初始化的生命周期initState里注册吗
- can't write @#$All?& to a ble device to receive response from server. mtu request is 512.
- how to write data in text format instead of hexadecimal format? pls do let me know. im stuck. i cant send data to device in text format and receive in hex format
- How to use flutter_blue_elves to show widgets as needed?
- MissingPluginException(No implementation found for method listen on channel
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_blue_elves.