Search found 35 matches

by ESP_Island
Thu Jun 29, 2017 10:04 am
Forum: ESP32 IDF
Topic: BLE: Recipe for handling BLE pairing with ESP32 acting as a peripheral
Replies: 2
Views: 2368

Re: BLE: Recipe for handling BLE pairing with ESP32 acting as a peripheral

Because in ESP32, IO capability is set to “Keyboard and Display” by default. So in your case of paring, smart phone acts as keyboard role (need to input passkey) and ESP32 acts as Display role (generate a random passkey and display in the screen). The passkey is received in the GAP event ESP_GAP_BLE...
by ESP_Island
Thu Jun 29, 2017 9:39 am
Forum: ESP32 IDF
Topic: BLE: Contents of correct response for ESP_GATTS_WRITE_EVT
Replies: 3
Views: 3286

Re: BLE: Contents of correct response for ESP_GATTS_WRITE_EVT

Hi, Kolban Please refer to function example_write_event_env in “gatt server” example (IDF 2.1) to know more about how to process “write event” packets. If you have received a “write request” packet, what you need to send just only “write response”, so “conn id” and “transfer id” is sufficient and pa...
by ESP_Island
Thu Jun 29, 2017 9:14 am
Forum: ESP32 IDF
Topic: [Answered] BLE events ESP_GAP_BLE_LOCAL_IR_EVT and ESP_GAP_BLE_LOCAL_ER_EVT
Replies: 1
Views: 1332

Re: BLE events ESP_GAP_BLE_LOCAL_IR_EVT and ESP_GAP_BLE_LOCAL_ER_EVT

Hi, Kolban

Those events are generated for IDF debug use and they are not useful for developers. We will delete them in further IDF version.
by ESP_Island
Thu Jun 29, 2017 9:07 am
Forum: ESP32 IDF
Topic: Sequence flow for BLE advertising ... must I wait for an ESP_GAP_BLE_ADV_DATA_SET_COMPLETE_EVT?
Replies: 1
Views: 1553

Re: Sequence flow for BLE advertising ... must I wait for an ESP_GAP_BLE_ADV_DATA_SET_COMPLETE_EVT?

It is allowed to call “set adv data”, “set scan rsp data” and “start adv” together under the condition that adv data and scan rsp data are all correctly set. Calling “Start adv” before adv data being set correctly will cause that peripheral advertises NULL packets, which may cause unexpected result....
by ESP_Island
Thu Jun 29, 2017 8:24 am
Forum: ESP32 IDF
Topic: [Info]: BLE: service_uuid_len must be multiple of 16
Replies: 4
Views: 3005

Re: [Info]: BLE: service_uuid_len must be multiple of 16

Hi, Kolban In fact, ESP32 supports all 2-Byte UUID, 4-Byte UUID and 16-Byte UUID in advertising packets. But all types of UUID need to be converted to 16-Byte UUID format while setting advertising data using esp_ble_gap_config_adv_data. Bluedroid will re-convert the 16-Byte UUID to original UUID bef...

Go to advanced search