我在SDK 5.0.4工作
我想在运行时更改存在的Service UUID和属性UUID,因为客户通过串行端口运行时由客户配置了属性UUID
我正在开发在教学蓝牙模块
I'm doing the following
uint8_t new_uuid_arr [16] = {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1};//一个新的uuid struct att_char128_desc * p1 =(struct att_char128_desc *)cust_prf_funcs-> att_db [cust1_idx_server_tx_char] .value;memcpy(p1-> attr_type,new_uuid_arr,16);
我的期望是在上面的代码执行后uuid更改
但它不起作用
Please tell me how do I change exist service uuid and attribute uuid by which function after running
Is there any other way to change attribute uuid ?
设备:

嗨Chenpenglai,
您是否尝试过以下步骤在app_custs1_create_db()函数中??如果是,在SDK的哪个例子中?你想如何改变UUI?
更改特征值,您必须在两个地方应用更改:
现在将改变应用于特征本身:
Thanks, PM_Dialog
我试图在上面执行code in the app_custs1_create_db() function, as follows
但App_custs1_create_db()函数只能在设备启动时更改服务UUID
I want to change it at runtime, do not reboot
I tried change array_test_svc[] value and called app_custs1_create_db() function after device started, but I couldn't change the service uuid
你好PM_DIALOG.
I need your help
嗨Chenpenglai,
我为延迟道歉。我正在努力,我会尽快回复你。您使用的是哪个SDK示例?
Thanks, PM_Dialog
我在ble_app工作_peripheral
嗨Chenpenglai,
我使用了以下代码片段,我无法复制您的问题。我使用了SDK5.0.4的BLE_APP_PHERICALLAL示例。唯一的变化是cust1_idx_long_value_char而不是cust1_idx_server_tx_char。我假设您已创建“服务器TX”特征。
Since, I am not able to replicate the issue, please try to debug your code. Additionally, what do you mean that is not working? Is the device advertising? Are you able to connect? Did you run it in debug mode?
Thanks, PM_Dialog