我正在使用bluez5.35进行应用程序开发,而调试遇到/ org / bluez / hci1只提供8个接口。(org.bluez.Adapter1,CyclingSpeedManager1,HeartRateManager1,Media1,NetworkServer1,ThermometerManager1,DBus.Introspectable ,DBus.properties)。
我想使用几个与现有设置无关的接口(例如org.bluez.Network1)。 下面是我设置的快照(附带快照)。
请告诉我,如何在/ org / bluez / hci中添加org.bluez.Network1接口? 是否有需要更改的配置文件?或任何其他方式来实现这一目标?
答案 0 :(得分:2)
Interface org.bluez.Network1 is not implemented by object /org/bluez/hci1, which represents the Bluetooth adapter itself.
Once you pair with a device that supports the PAN profile, Bluez will create a new object representing the paired device. This object will have a path like /org/bluez/hci1/dev_AC_DD_6E_0F_C4_B8 and it will expose interface org.bluez.Network1.