C++ builder 10.4 FMX TBluetoothLE Read Device Value Error [closed]


I use C++ builder 10.4 design my project,my project need keep bluetooth Connect and receive bluetooth value,question is when i get value form TBluetoothGattCharacteristic my app will crash,
i try as below
void __fastcall TForm2::BluetoothLE1CharacteristicRead(TObject * const Sender,
TBluetoothGattCharacteristic * const ACharacteristic,TBluetoothGattStatus AGattStatus)
TBytes t_bata = const_cast<TBluetoothGattCharacteristic*>(ACharacteristic)->Value;

have same error i can’t receive bluetooth data long time
enter image description here

Comments are closed.