Search found 5 matches
- Wed Sep 30, 2020 12:48 am
- Forum: ESP32 Arduino
- Topic: BLE_scan: scans after first one don't return correct info
- Replies: 0
- Views: 2316
BLE_scan: scans after first one don't return correct info
Quick summary: BLE scans for advertising packets return something wrong after the first scan (first scan returns correct packets) ------- running Neil Kolbans Examples>ESP32 BLE Arduino>BLE_Scan.ino example on a 1.0.4 ESP32 IDF, Arduino IDE 1.8.14 hourly 2020/09/23 Using it to passively scan for adv...
- Wed Sep 23, 2020 11:07 pm
- Forum: ESP32 Arduino
- Topic: esp_bt_controller_init fail - why ?
- Replies: 6
- Views: 7284
Re: esp_bt_controller_init fail - why ?
For reference, I also found the macro definition is esp_bt.h https://github.com/espressif/arduino-esp32/blob/1977370e6fc069e93ffd8818798fbfda27ae7d99/tools/sdk/include/bt/esp_bt.h #define BT_CONTROLLER_INIT_CONFIG_DEFAULT() { \ .controller_task_stack_size = ESP_TASK_BT_CONTROLLER_STACK, \ .controlle...
- Wed Sep 23, 2020 10:03 pm
- Forum: ESP32 Arduino
- Topic: esp_bt_controller_init fail - why ?
- Replies: 6
- Views: 7284
Re: esp_bt_controller_init fail - why ?
Thanks guys for the ideas, checking out both: 1. return value from esp_bt_controller_init(&bt_cfg); call is: ESP_ERR_INVALID_STATE (0x103): Invalid state So the esp_bt_controller_config_t bt_cfg = BT_CONTROLLER_INIT_CONFIG_DEFAULT(); macro does not actually produce a config the library itself likes ...
- Tue Sep 22, 2020 6:37 pm
- Forum: ESP32 Arduino
- Topic: esp_bt_controller_init fail - why ?
- Replies: 6
- Views: 7284
Re: esp_bt_controller_init fail - why ?
Thanks ESP_Sprite ! I did look at the esp_bt_controller_init return code but then referring to the ESP32 documentation p 129 ("Read the Docs Template Documentation, Release v4.1-dev-2071-gf91080637") it just says Return ESP_OK - success, other - failed so not that useful :) Strangely I have found th...
- Sun Sep 20, 2020 4:48 am
- Forum: ESP32 Arduino
- Topic: esp_bt_controller_init fail - why ?
- Replies: 6
- Views: 7284
esp_bt_controller_init fail - why ?
I am trying to make the simplest possible passive BLE scanner on an ESP32 (specifically a Adafruit Feather Huzzah 32) Basing my code on Neil Kolbans c example here: https://github.com/nkolban/esp32-snippets/blob/master/BLE/scanner/ble1.c I know he wrote C++ wrappers that are also included in the 1.0...