c++ - C++ builder 10.4 FMX TBluetoothLE 读取设备值异常错误
问题描述
我使用 C++ builder 10.4 设计我的项目,我的项目需要保持蓝牙连接并接收蓝牙值,问题是当我从 TBluetoothGattCharacteristic 获得值时,我的应用程序将崩溃,
我尝试如下
void __fastcall TForm2::BluetoothLE1CharacteristicRead(TObject * const Sender,
TBluetoothGattCharacteristic * const ACharacteristic,TBluetoothGattStatus AGattStatus)
{
TBytes t_bata = const_cast<TBluetoothGattCharacteristic*>(ACharacteristic)->Value;
Do My Code.....
}
解决方案
推荐阅读
- javascript - 保存一个项目的点击计数每个项目被点击 js 意外的令牌
- git - What git add -A -- . mean
- elasticsearch - Elasticsearch:在 query_string 中使用字段分析器
- javascript - 获取外键表数据
- c# - .NET Core RuntimeIdentifiers 仍然需要吗?
- bash - -bash:未设置:找不到命令
- android - 来自动态创建的编辑文本的所有值的总和
- flask - 从 txt 文件初始化烧瓶数据库
- java - 如何增加一个新类型而不需要修改工厂类?
- python - 为什么我不能使用方法类作为生成器?