C++ builder 10.4 FMX TBluetoothLE Read Device Value Exception Error

  

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;

Do My Code…..

}

1.Exception Error
2.Press Break Stop Here

Comments are closed.