Advertisement

CC2640R2F BLE开发-GAP 配置命令说明书

阅读量:

GAP

generic access profile

以下命令都是在广播过程应用的命令

盘:TI 简单链接 CC2640R2 SDK 2.40 中的源代码目录 TI 轻量化堆栈配置文件下 角色配置文件中 外部广播器相关代码的位置

调用API-设置

复制代码
    bStatus_t GAPRole_SetParameter(uint16_t param, uint8_t len, void *pValue)

调用API-获取

复制代码
    bStatus_t GAPRole_GetParameter( uint16 param, void *pValue )

举例:设置广播数据,注意多个参数时的写法

复制代码
    // Advertisement data (max size = 31 bytes, though this is
    // best kept short to conserve power while advertising)
    static uint8_t advertData[] =
    {
      // Flags: this field sets the device to use general discoverable
      // mode (advertises inde

全部评论 (0)

还没有任何评论哟~