Search found 6 matches

by josephhui
Sat Aug 08, 2020 9:19 am
Forum: ESP-IDF
Topic: Simultaneous esp_ble_gattc_read_char() calls?
Replies: 2
Views: 2391

Re: Simultaneous esp_ble_gattc_read_char() calls?

Chris,

Thanks for the reply. We are considering using IDF's queue API to implement a dispatch queue for serializing the BLE requests.

Joseph
by josephhui
Sun Jul 26, 2020 6:12 pm
Forum: ESP-IDF
Topic: Simultaneous esp_ble_gattc_read_char() calls?
Replies: 2
Views: 2391

Simultaneous esp_ble_gattc_read_char() calls?

If I make a esp_ble_gattc_read_char() call for "characteristic2" immediately after a esp_ble_gattc_read_char() call for "characteristic1", is that going to work? Since esp_ble_gattc_read_char() is asynchronous, do I need to somehow wait for the characteristic value to be returned before making anoth...
by josephhui
Mon May 25, 2020 4:15 pm
Forum: ESP-IDF
Topic: "GATTC_Discover GATT_BUSY" issue with esp_ble_gattc_register_for_notify()
Replies: 0
Views: 1693

"GATTC_Discover GATT_BUSY" issue with esp_ble_gattc_register_for_notify()

In our setup, the ESP32 is the client connect to an nRF52 device that is a BLE server. During the ESP_GATTC_SEARCH_CMPL_EVT, our code calls: esp_ble_gattc_get_all_char() esp_ble_gattc_register_for_notify() esp_ble_gattc_read_char() We use LESC pairing, the esp_ble_gattc_read_char() with ESP_GATT_AUT...
by josephhui
Thu Apr 02, 2020 3:20 pm
Forum: ESP-IDF
Topic: select() unblocked but recv() timed out
Replies: 3
Views: 3490

Re: select() unblocked but recv() timed out

Below is the code. Use xTaskCreate() to start the http server task. #include <esp_wifi.h> #include <esp_event.h> #include <esp_log.h> #include <esp_system.h> #include <nvs_flash.h> #include <sys/param.h> #include "nvs_flash.h" #include <esp_http_server.h> #include "lwip/api.h" #include "lwip/sockets...
by josephhui
Thu Apr 02, 2020 3:08 pm
Forum: ESP-IDF
Topic: select() unblocked but recv() timed out
Replies: 3
Views: 3490

Re: select() unblocked but recv() timed out

Actually the errno return is 11 (EAGAIN). I guess it means there is no data available. I will try to post the code a bit later.
by josephhui
Thu Apr 02, 2020 10:26 am
Forum: ESP-IDF
Topic: select() unblocked but recv() timed out
Replies: 3
Views: 3490

select() unblocked but recv() timed out

Hi, I am implementing a simple web server using LWIP socket that only handles 1 request at a time with a simple loop. Within the loop, I am using select() to block the process until there is data coming in. I have no problem in receiving HTTP request and responding to it. The issue is that after a r...