You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi, I recently used the code to achieve BLE master-slave mode conversion. From mode to master mode is no problem. However, the main mode (scan) transfer to the mode encountered HCI resources can not open the problem. You probably do not really know the way I did it. I can simply say it. I set the scan time to 5min, after 5min has passed, I will call the stop () method to close the HCI interface and turn off the main_loop () (which polls the HCI for a while and calls the related functions to handle it) thread. After both are closed, I start ble_server again. It is at this time, there has been the problem of HCI interface can not be opened. I'm sure I've run stop () and did not print any errors.
d.Stop()
necessary.HCI_main_loop_chan <- 1 //this is used to end the main_loop thread
time.Sleep( 5 * time.Second)
go ble_server()
If you have any good way to convert from master to slave or slave to master ,please tell me. Thanks!
The text was updated successfully, but these errors were encountered:
hi, I recently used the code to achieve BLE master-slave mode conversion. From mode to master mode is no problem. However, the main mode (scan) transfer to the mode encountered HCI resources can not open the problem. You probably do not really know the way I did it. I can simply say it. I set the scan time to 5min, after 5min has passed, I will call the stop () method to close the HCI interface and turn off the main_loop () (which polls the HCI for a while and calls the related functions to handle it) thread. After both are closed, I start ble_server again. It is at this time, there has been the problem of HCI interface can not be opened. I'm sure I've run stop () and did not print any errors.
If you have any good way to convert from master to slave or slave to master ,please tell me. Thanks!
The text was updated successfully, but these errors were encountered: