Flutter Blue Read characteristic UUID

可紊 提交于 2019-12-13 00:45:47

问题


I am using flutter blue to connect with an adafruit feather board and read in/write some values. How would I go about setting up a new characteristic that I wished to read from? I have followed the example but am having difficulty reading the double values produced on my arduino code.

 //Read Uuid

 BluetoothCharacteristic readCharacter = new
 BluetoothCharacteristic(uuid: null, serviceUuid: 6e400001-b5a3-f393-e0a9- 
 e50e24dcca9e, descriptors: null,
  properties: null);
//Write UUID

I am unsure what the declaration of the specific Bluetooth Characteristic I desire requires as parameters. Documentation indicates a uuid which I am unsure how to format?

Additionally, if there are any other examples of a simple project reading and writing values with a user interface established it would be nice to view.

来源:https://stackoverflow.com/questions/51932757/flutter-blue-read-characteristic-uuid

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!