Search found 30 matches
- Thu Nov 29, 2018 12:23 pm
- Forum: ESP-IDF 中文讨论版
- Topic: gatt_server_service_table例程失败
- Replies: 18
- Views: 24947
Re: gatt_server_service_table例程失败
我们有两种设置 adv 广播内容的API, esp_ble_gap_config_adv_data() 和 esp_ble_gap_config_adv_data_raw(), 在这个demo 中默认使用 esp_ble_gap_config_adv_data_raw(). 在 gatt server demo 中我们使用的是esp_ble_gap_config_adv_data(). 请将 gatts_table_create_demo.c 中 63行 ''#define CONFIG_SET_RAW_ADV_DATA'' 注释掉, 重新测试. 如果还不行, 请测试 gatt_securit...
- Thu Nov 29, 2018 6:35 am
- Forum: ESP-IDF 中文讨论版
- Topic: gatt_server_service_table例程失败
- Replies: 18
- Views: 24947
Re: gatt_server_service_table例程失败
还有一个问题, 根据你的描述, 使用 gatt_server demo 是可以搜索到广播的, gatt_service_table 搜索不到广播, 请问题这两个demo 是使用同一块ESP32 测试的吗? 这两个demo只是创建service 的方式不一样, 广播的 api 都是一样的, 没有任何区别,
- Thu Nov 29, 2018 6:28 am
- Forum: ESP-IDF 中文讨论版
- Topic: gatt_server_service_table例程失败
- Replies: 18
- Views: 24947
Re: gatt_server_service_table例程失败
ESP32 我们进行了兼容性测试, 并没有出现这个问题. 小米手机我们测试了 Xiaomi Max 2, Xiaomi 5X, Xiaomi Redmi Note 4, Xiaomi MI 5等 测试都是ok的, 我这边没有小米6手机,无法验证你的问题. BLE 的广播信道是 37, 38, 39 , 这个蓝牙官方定义的, 7X可以搜索到说明我们的BLE 广播是符合标准, 我不确定你的小米6出现了什么问题, 你的小米6 手机是否能够搜索到其他ble 广播? 重启蓝牙是否恢复正常 ? 网上报了很多小米6蓝牙的问题, 是否小米官方有系统升级 或者补丁之类的.我这边试试能不能找到小米6手机 .
- Thu Nov 29, 2018 2:47 am
- Forum: General Discussion
- Topic: Do I need to clear bonded devices?
- Replies: 10
- Views: 18028
Re: Do I need to clear bonded devices?
`esp_bt_gap_remove_bond_device()` is used to remove the classic bluetooth encryption key from flash.
`esp_ble_remove_bond_device()` is used to remove the BLE encryption key from flash.
`esp_ble_remove_bond_device()` is used to remove the BLE encryption key from flash.
- Wed Nov 28, 2018 1:04 pm
- Forum: ESP IoT Solution
- Topic: BLE "just in time" advertisement
- Replies: 3
- Views: 7505
Re: BLE "just in time" advertisement
Sorry, I am afraid there is no way to know that a single adv packet has been sent.
- Wed Nov 28, 2018 11:34 am
- Forum: ESP-IDF 中文讨论版
- Topic: gatt_server_service_table例程失败
- Replies: 18
- Views: 24947
Re: gatt_server_service_table例程失败
我测试最新的IDF都是正常的, demo 是可以scan 和连接的. 请帮忙做以下测试:
1. 请帮忙确认你的这块 ESP32 之前是否和手机加密连接过 ? 请在手机蓝牙设置里查看是否有配对记录? 如果有请取消所有配对, 重新搜索试试
2. 你还可以找一台新的手机搜索试试 , 是否能搜索到设备广播.
1. 请帮忙确认你的这块 ESP32 之前是否和手机加密连接过 ? 请在手机蓝牙设置里查看是否有配对记录? 如果有请取消所有配对, 重新搜索试试
2. 你还可以找一台新的手机搜索试试 , 是否能搜索到设备广播.
- Wed Nov 28, 2018 3:56 am
- Forum: ESP-IDF 中文讨论版
- Topic: gatt_server_service_table例程失败
- Replies: 18
- Views: 24947
Re: gatt_server_service_table例程失败
我刚才更新了IDF, 运行 gatt_server_service_table demo 测试是可以被搜索到的, 蓝牙名字是 ESP_GATTS_DEMO, 从你的log看, service 已经创建成功, 广播也开始了, log 没有任何问题. 请问你有修改过什么代码吗?
- Tue Nov 27, 2018 1:02 pm
- Forum: General Discussion
- Topic: Do I need to clear bonded devices?
- Replies: 10
- Views: 18028
Re: Do I need to clear bonded devices?
ESP32 can store 15 bonded devices, it will delete the oldest bonded device to make room for the new one when the device reaches the limit.
- Mon Nov 19, 2018 7:15 am
- Forum: ESP-IDF
- Topic: H2 read Float BLE Characteristic
- Replies: 3
- Views: 5309
Re: H2 read Float BLE Characteristic
thanks for chegewara's help. please Please follow the chegewara to try.
- Wed Aug 09, 2017 6:28 am
- Forum: ESP-IDF
- Topic: BLE multi-connection procedure
- Replies: 11
- Views: 32281
Re: BLE multi-connection procedure
hi all, Please update to the latest idf, the attachment is the multi-connection code. we would add the multi-connection demo in the v3.0