[N32WBxxx] wb031的notfiy问题

[复制链接]
 楼主| LiXinQin 发表于 2023-8-8 10:25 | 显示全部楼层 |阅读模式
      如下,这两个按钮中使能和失能该如何操作?     
          if(length == 2)
            {
                uint16_t cfg_value = ind_value->value[0] + ind_value->value[1];
               
                if(cfg_value == PRF_CLI_START_NTF)
                {
                    //enabled notify
                               
                }
                else if(cfg_value == PRF_CLI_STOP_NTFIND)
                {
                               
                }
            }
niceguy 发表于 2023-8-9 09:14 | 显示全部楼层
如果是从机自己设置自己用 rdtss_set_ccc_value(conidx, RDTSS_IDX_NTF_CFG, 1);
Deng1933823644 发表于 2023-10-11 12:27 来自手机 | 显示全部楼层
niceguy 发表于 2023-8-9 09:14
如果是从机自己设置自己用 rdtss_set_ccc_value(conidx, RDTSS_IDX_NTF_CFG, 1);

大神你好,conidx一般填什么,求救。
HORSE7812 发表于 2023-10-12 17:46 | 显示全部楼层
Deng1933823644 发表于 2023-10-11 12:27
大神你好,conidx一般填什么,求救。

struct rdtss_16bit_val_write_ind
{
    /// Connection index
    uint8_t  conidx;
    /// Handle of the attribute that has to be written
    uint16_t handle;
    /// Data length to be written
    uint16_t length;
    /// Data to be written in attribute database
    uint8_t  value[__ARRAY_EMPTY];
};

通过这个参数传递过来的。
Deng1933823644 发表于 2023-10-12 20:14 | 显示全部楼层
HORSE7812 发表于 2023-10-12 17:46
struct rdtss_16bit_val_write_ind
{
    /// Connection index

好的谢谢。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

6

主题

18

帖子

1

粉丝
快速回复 返回顶部 返回列表