当前位置: 首页 > 工具软件 > BlueZ > 使用案例 >

(三)深入理解Bluez协议栈之蓝牙Mesh的支持(3/5)

董子航
2023-12-01

前言:

上一篇文章介绍了如何在mesh-cfgclient程序的代码基础上,新增代码以实现generic onoff model的功能,其中包括单控和组控,现在把patch的代码实现粘贴出来,方便读者参考,不过请勿转载本文涉及的代码,代码请勿分享给别人。

补丁源码:

From 654b190e5c846ad9787ed25d4ff8ef902ca7f645 Mon Sep 17 00:00:00 2001
From: wanguofeng <wanguofeng8023@126.com>
Date: Tue, 7 Mar 2023 20:15:34 +0800
Subject: [PATCH] add generic-onoff.c support in tools/mesh-cfgclient

add generic onoff support in mesh-cfgclient, but use app_idx = 0 as default

add mesh_db_node_model_bind_app_idx interface and fix mesh-db's bug

modify l_uuid_is_valid function, change ttl to 4

support Group control
---
 matrix/external/bluez/bluez-5.65/Makefile.in  |   9 +
 .../external/bluez/bluez-5.65/Makefile.tools  |   1 +
 matrix/external/bluez/bluez-5.65/ell/uuid.c   |  20 +-
 .../bluez/bluez-5.65/mes
 类似资料: