【问题标题】:Change Bluetooth name Python更改蓝牙名称 Python
【发布时间】:2011-02-08 09:10:51
【问题描述】:

我在 Ubuntu 10.10 上使用 PyBluez。我想知道如何在软件中更改本地设备的蓝牙名称。我找不到任何相关的命令..

【问题讨论】:

    标签: python bluetooth ubuntu-10.10


    【解决方案1】:

    org.bluez D-Bus 总线上的/org/bluez/<pid>/<device> 对象路径中调用org.bluez.Adapter.SetProperty(u'Name', u'New name here')

    【讨论】:

    • 这和 PyBluez 包有关系吗?
    • @Senthil:不。很可能该属性没有暴露在那里,并且需要低级别的 D-Bus 访问权限。
    • 我该如何实现这个?我如何访问D-Bus(这是我第一次听说它..)
    猜你喜欢
    • 2021-04-03
    • 2014-12-05
    • 2021-06-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-12-16
    • 2016-03-11
    • 1970-01-01
    相关资源
    最近更新 更多