BLE connection error "Device profile has changed. Clear existing ble object with address Exxxxxxxxxxx and recreate it."
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (0)
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!