环境
问题描述
当hcitool & sdptool正常运行时,我的代码无法用errno == 2( ENOENT )连接到SDP,下面是失败的代码:
m_pSDPSession = sdp_connect(BDADDR_ANY, BDADDR_LOCAL, SDP_RETRY_IF_BUSY | SDP_WAIT_ON_CLOSE);为什么我会“sdp_connect”失败?我怎么能解决这个问题?
发布于 2016-08-08 08:16:38
编辑/usr/lib/systemd/system/bluetooth.service并将标志包含在ExecStart选项中。
ExecStart=/usr/libexec/bluetooth/bluetoothd --compat
然后
$ systemctl daemon-reload
$ systemctl restart bluetooth.service
发布于 2016-08-08 08:15:26
正如Shravan40所指出的,添加‘-compat’@ 'bluetooth.service‘解决了这个问题
https://stackoverflow.com/questions/38824014
复制相似问题