Search found 27 matches

by ESP_XieWX
Thu Mar 25, 2021 3:17 pm
Forum: ESP-IDF
Topic: How can I read attribute property?
Replies: 2
Views: 2869

Re: How can I read attribute property?

BLE services table are defined in the local, so you can save the property when you create the table.
by ESP_XieWX
Thu Mar 25, 2021 3:07 pm
Forum: ESP-IDF
Topic: [Bleutooth LE ] Error occured while removing bond device
Replies: 1
Views: 2654

Re: [Bleutooth LE ] Error occured while removing bond device

static void remove_bonded_dev(void) { int dev_num = esp_ble_get_bond_device_num(); if (dev_num == 0) { return; } esp_ble_bond_dev_t* dev_list = (esp_ble_bond_dev_t*)malloc(sizeof(esp_ble_bond_dev_t) * dev_num); if (dev_list == NULL) { return; } esp_ble_get_bond_device_list(&dev_num, dev_list); for ...
by ESP_XieWX
Thu Oct 29, 2020 9:35 am
Forum: ESP-IDF
Topic: Channel Information of GAP Scan Events
Replies: 2
Views: 2454

Re: Channel Information of GAP Scan Events

Scanning channel, the bottom layer will automatically switch, the application layer is unable to obtain the scanning channel information
by ESP_XieWX
Thu Oct 29, 2020 8:50 am
Forum: ESP-IDF 中文讨论版
Topic: BLE主机最多只能连接6个设备
Replies: 3
Views: 16069

Re: BLE主机最多只能连接6个设备

能连接几个设备和能注册几个 APP ID 没有关系, 连接也可以共用一个 APP ID
by ESP_XieWX
Thu Oct 29, 2020 8:42 am
Forum: ESP-IDF 中文讨论版
Topic: BLE低功耗模式
Replies: 6
Views: 11389

Re: BLE低功耗模式

您手上还有其他的同类板子吗?建议交叉验证下,是不是这块板子是坏的。

怀疑是硬件设计上的问题,可以联系安信可,这个模组不是我们的官方模组
by ESP_XieWX
Thu Oct 29, 2020 8:01 am
Forum: ESP-IDF 中文讨论版
Topic: 蓝牙作为客户端,实现不了透传
Replies: 1
Views: 3847

Re: 蓝牙作为客户端,实现不了透传

首先,需要做服务发现
其次,需要设置SPP参数
最后,还需要使能notify,也就是写相应的characteristic的CCC,这里可以参考AT的文档,有示例
by ESP_XieWX
Thu Oct 29, 2020 7:58 am
Forum: ESP-IDF 中文讨论版
Topic: esp32-idf白名单无效果
Replies: 1
Views: 3660

Re: esp32-idf白名单无效果

Sorry, the whitelist only support public address and static random address without encryption. We will find a way to fix this problem, but we are still not sure how long it will take.
by ESP_XieWX
Thu Oct 29, 2020 7:55 am
Forum: ESP-IDF 中文讨论版
Topic: BLE蓝牙设备名称设置为何不生效
Replies: 2
Views: 6126

Re: BLE蓝牙设备名称设置为何不生效

您想修改的是广播数据包中的设备名字把? 需要按照格式规范,自定义广播数据里面的内容,您提到的那个名字是GAP里面的设备名字,扫描展示出来的名字是需要修改广播数据

有两种方法设置,一种是设置 raw data,这需要您自己按照格式配置,如果您对此不熟悉,可以只用结构体来配置,任意一个 server demo 都有这部分的参考示例代码。
by ESP_XieWX
Thu Oct 29, 2020 7:50 am
Forum: ESP-IDF 中文讨论版
Topic: ESP32如何读取周围蓝牙广播的数据
Replies: 1
Views: 3344

Re: ESP32如何读取周围蓝牙广播的数据

可以参考任意一个 client 端的 demo,里面都有扫描的部分,会将扫描的结果持续打印出来,您所需要的做的就是把这本分内容拿出来,通过wifi 发送出去就好了
by ESP_XieWX
Thu Oct 29, 2020 7:48 am
Forum: ESP-IDF 中文讨论版
Topic: 请问BLE如何修改广播数据
Replies: 1
Views: 3696

Re: 请问BLE如何修改广播数据

在蓝牙初始化完成之后,广播开始之前,设置广播数据