I'm trying to write a c program that uses <bluetooth/bluetooth.h> library and exeute it in Termux.
I somehow managed to install the blueZ library straight from google git source files and I'm able to compile without errors my c program. The function hci_get_route(NULL); returns negative value which means there is no local bluetooth device (perror: Address family not supported by protocol). When I execute sudo hcitool dev it shows no device. I'm wondering if it would be easier to set dual boot in my phone and execute the c program through another OS. As far as I know Termux has no Bluetooth API. Any suggestion is welcomed :)
PD: I've also written in the Termux git forum but I got no answer within a week.