问题描述
目前我正在尝试使用 MLT-BT05 与 Arduino 通信。
我已经设法将字符串发送到 arduino,但我无法读取任何值。
我曾尝试阅读具有各种特征的每项服务,但注意到有效。有没有人
知道如何读取这些字符串吗?(哪个服务)
我的第二个问题是,如果将值发送到电话,是否可以编写某种中断。
顺便说一句,我正在使用 Flutter_blue 库。
感谢您的回答!
我的阅读代码:
read() async {
while (true) {
for (BluetoothCharacteristic c in _services[3].characteristics) {//the 3 is just an example I tried every index
List<int> value = await c.read();
String valuestring = new String.fromCharCodes(value);
print(valuestring);
}
}
//setState(() {});
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)