I am building a bluetooth server and for some reason, on Ubuntu, I am unable to figure out the correct settings so I can pair to it from an Android or Windows device; I do see the ubuntu id on Windows but it stays forever on “Connecting” when trying to pair to it.
Here is what I tried(and many different variants of these same settings(commenting/uncommenting lines):
Ubuntu:
Distributor ID: Ubuntu
Description: Ubuntu 22.04.4 LTS
Release: 22.04
Codename: jammy
/etc/rc.local:
sudo hciconfig hci0 piscan
sudo hciconfig hci0 name 'AName'
sudo bluetoothctl power on
sudo bluetoothctl agent on
sudo bluetoothctl scan on
sudo bluetoothctl discoverable on
sudo bluetoothctl pairable on
sudo bluetoothctl agent NoInputNoOuput
sudo bluetoothctl default-agent
All help is appreciated, Thank you!