linux - Bluetoothctl without any user interaction -
right can pair , connect phone machine without user interaction in way:
$bluetoothctl #power on #discoverable on #pairable on #agent noinputnooutput #default-agent
from phone search bt device , pairs , connectly automatically. have 2 problems:
it still asks authorize services:
authorize service
[agent] authorize service 0000110e-0000-1000-8000-00805f9b34fb (yes/no):
but not because i've specified noinputnooutput
!
- how trust device? it's enough type
trust
need automatically same reason.
in general, there reliable c++ library handle bluetooth connections , common profiles a2dp , hfp?
Comments
Post a Comment