BLE connection error "Device profile has changed. Clear existing ble object with address Exxxxxxxxxxx and recreate it."

조회 수: 3 (최근 30일)
Hello,
I am trying to Adafruit Bluefruit BLE device in MATLAB 2019b. Sometimes it gets connected properly and other times it gives the following error: "Device profile has changed. Clear existing ble object with address Exxxxxxxxxxx and recreate it." The connection is setup to allowing reading and writing data from the BLE. However, if I disable the read operation, then it works properly without throwing any error. What causes this error and how can I avoid it? I am attaching my script for setting up the BLE connection. I will truly appreciate any help that you can offer. Thanks
Code -
disp("Initializing BLE connection....");
bleobj = ble("E3C0DB5D3653");
wch = characteristic(bleobj,"6E400001-B5A3-F393-E0A9-E50E24DCCA9E","6E400002-B5A3-F393-E0A9-E50E24DCCA9E");
rch = characteristic(bleobj,"6E400001-B5A3-F393-E0A9-E50E24DCCA9E","6E400003-B5A3-F393-E0A9-E50E24DCCA9E");
subscribe(rch);
write(wch, sprintf('%s', "Hello BLE World","uint8");
MsgRecvd = char(read(rch));

답변 (0개)

카테고리

Help CenterFile Exchange에서 Bluetooth Low Energy Communication에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by