I am using Ble2 library to connect to my device. No problem. Enhancing my program I decided to change the program such that when the user opens my program it should automatically enable the BT adaptor if not enabled and start a scan for BLE devices.
I am using both the BLE2 library and BluetoothAdmin. BluetoothAdmin is used to enable the adaptor and Ble2 is used for Tx/RX. Both libraries have got a 'StateChanged' event. It seems that two libraries are not playing nice together. Is there a way not to use BluetoothAdmin and to enable the BT adaptor or what are my options?
It seems that my understanding of the libraries is not complete.
It seems that I am fighting something that is happening in the background as I was trying to enable the BT adaptor myself if it is not enabled. But it seems that something else is trying to enable the BT adaptor every 60 seconds. Can it be BleManager2 that is doing it? I've disabled BluetoothAdmin. If BleManager2 is trying to enable BT, what is the reason and what is trying to achieve?