readDescriptorData method
使用设备特征值的描述去向设备读取数据
Implementation
void readDescriptorData(
String serviceUuid, String characteristicUuid, String descriptorUuid) {
if (_state != DeviceState.destroyed && _state == DeviceState.connected) {
//已连接才能去向设备写入数据
FlutterBlueElves.instance._channel.invokeMethod('readDescriptorData', {
"id": _id,
"serviceUuid": serviceUuid,
"characteristicUuid": characteristicUuid,
"descriptorUuid": descriptorUuid
}); //去向设备读取数据
}
}