Hello,
Aim : Our application uses the PC-BLE driver for serialization purpose as well as the nrfutil for DFU purpose in the same script, we switch between the two by opening and closing the adapters regularly. We use the "adapter.driver.open()" and "adapter.driver.close()" API's to achieve this functionally.
Working : We are able to successfully use this API's to execute our application most of the times
Problem : We are facing "segmentation fault" errors while using this API's randomly. We tried tracing the origin of the segmentation fault and found out that it originates during the opening/closing of the adapter.
We assume that the issue is caused due to the adapter is busy in the connected state and we are trying to access it without verifying its state.
Please let us know if there is any API to validate the adapter is in free state and ready to be opened/closed?
Thanks
Sakib
