上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 109 下一页
摘要: 监听添加新对象的信号 objectManager = g_dbus_proxy_new_sync(conn, G_DBUS_PROXY_FLAGS_NONE, NULL, "org.bluez", "/", "org.freedesktop.DBus.ObjectManager", NULL, &e 阅读全文
posted @ 2024-07-22 14:23 流水灯 阅读(132) 评论(0) 推荐(0)
摘要: 遍历数组 g_variant_iter_next (GVariantIter, "{sa{sv}}", &gchar, &GVariantIter) g_variant_iter_next (GVariantIter, "{sv}", &gchar, &GVariant) g_variant_ite 阅读全文
posted @ 2024-07-17 18:31 流水灯 阅读(314) 评论(0) 推荐(0)
摘要: 问题: $ git commit hint: Waiting for your editor to close the file... D:\Program Files\Git\usr\bin\vi: line 3: exec: vim: not found $ git commit hint: W 阅读全文
posted @ 2024-07-17 17:27 流水灯 阅读(435) 评论(0) 推荐(0)
摘要: 创建数组 ay, a{sv} gchar data_gchar[] = {0xAA,0x00,0x00,0x00,0x01,0x00,0xFE,0x14,0x4F,0x01,0x00,0x00,0xA3,0x21}; GVariantBuilder builder_ay; g_variant_bui 阅读全文
posted @ 2024-07-16 11:08 流水灯 阅读(158) 评论(0) 推荐(0)
摘要: GVariant Format Strings 类型字符串实例分析 (sa{sv}as) 外层是元组类型,内含三个成员,分别是 字符串s 字典类型数组a{sv},字符串作为key,variant作为value 字符串类型数组as (i@ii) 外层是元组类型,内含三个成员,分别是 gint类型数字类 阅读全文
posted @ 2024-07-16 10:54 流水灯 阅读(127) 评论(0) 推荐(1)
摘要: dbus-send 功能 调用指定程序的方法 向指定程序发送信号 dbus-send的基本语法 dbus-send --system|--session --dest=destination --type=method_call --print-reply /path/to/object inter 阅读全文
posted @ 2024-07-16 10:30 流水灯 阅读(1078) 评论(0) 推荐(0)
摘要: 官方资料:https://www.freedesktop.org/wiki/Software/dbus/ dbus 源码库(https://gitlab.freedesktop.org/dbus/dbus),libdbus 是 dbus 库的一部分,libdbus 是 low-level API,下 阅读全文
posted @ 2024-07-16 10:28 流水灯 阅读(363) 评论(0) 推荐(0)
摘要: 如上图,编辑框差异对比太花哨,可关闭 阅读全文
posted @ 2024-07-15 16:21 流水灯 阅读(75) 评论(0) 推荐(0)
摘要: 参考资料: bluz相关的接口:bluz SDK的 doc 文件夹 通用接口:https://www.freedesktop.org/wiki/Software/dbus/ org.bluez.Adapter1 服务:org.bluez 对象:/org/bluez/hci0 功能 启动扫描蓝牙设备( 阅读全文
posted @ 2024-07-14 19:53 流水灯 阅读(423) 评论(0) 推荐(0)
摘要: 查看支持的命令 bluetoothctl -h 进入 bluetooth 环境后输命令不需再加bluetoothctl 查看是否有蓝牙设备 bluetoothctl list // 相当于 hciconfig -a 启动蓝牙设备 bluetoothctl power on // 相当于 hcicon 阅读全文
posted @ 2024-07-12 10:21 流水灯 阅读(814) 评论(0) 推荐(0)
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 109 下一页