Search found 9 matches

by leogs01
Fri Apr 16, 2021 12:54 pm
Forum: ESP32 Arduino
Topic: ble communication client to multiple server
Replies: 3
Views: 5435

Re: ble communication client to multiple server

you would determine whether to continue scanning and connecting in your onConnect. It seems like in the example you would do that by setting/clearing flags they have in place instead of directly calling the scanning function from the onConnect function. The onConnect callback should be called every ...
by leogs01
Thu Apr 15, 2021 1:22 pm
Forum: ESP-IDF
Topic: BLE-MESH ESP32 Heartbeat Example
Replies: 2
Views: 3053

Re: BLE-MESH ESP32 Heartbeat Example

I'm using the nrf mesh app for android.
by leogs01
Thu Apr 15, 2021 1:10 pm
Forum: ESP32 Arduino
Topic: ble communication client to multiple server
Replies: 3
Views: 5435

Re: ble communication client to multiple server

There should be callbacks(EVT) that you can refer to in your client code in which you would choose to continue scanning or advertising based on whether the client is connecting to the servers or if the servers are connecting to your client and if you've hit your max number of connections. For exampl...
by leogs01
Tue Apr 06, 2021 5:36 pm
Forum: ESP-IDF
Topic: Is BLE Mesh Node connected?
Replies: 1
Views: 2167

Is BLE Mesh Node connected?

Is there a way to tell if a ble mesh node is currently connected to the provisioner?
by leogs01
Thu Apr 01, 2021 7:41 pm
Forum: ESP-IDF
Topic: BLE-MESH ESP32 Heartbeat Example
Replies: 2
Views: 3053

BLE-MESH ESP32 Heartbeat Example

Anyone have example code for how to configure BLE mesh nodes so that they provide a heartbeat signal that the provisioner can see?

The provisioner is going to be a phone.

Thank you
by leogs01
Mon Jun 29, 2020 1:17 pm
Forum: ESP-IDF
Topic: Disabling Bluetooth before Light Sleep
Replies: 2
Views: 4324

Re: Disabling Bluetooth before Light Sleep

I read that part too, but I ended up coding my application such that even if I didn't disable BT using the appropriate calls, my device was able to go into light sleep after advertising and then come out of it and continue advertising before going back into light sleep. The code I used for it is bel...
by leogs01
Fri Jun 26, 2020 1:37 pm
Forum: ESP-IDF
Topic: Disabling Bluetooth before Light Sleep
Replies: 2
Views: 4324

Disabling Bluetooth before Light Sleep

I'm creating a beacon that advertises using BLE for one second and then goes into light sleep for 4 seconds and then wakes up again and advertises for one second. This repeats continuously. I was wondering if you have have to repeat the process of disabling bluetooth before going into light sleep an...
by leogs01
Thu Jun 25, 2020 8:22 pm
Forum: ESP-IDF
Topic: BLE Advertising after light sleep
Replies: 0
Views: 2339

BLE Advertising after light sleep

When starting light sleep using the below code, I am able to to go into light sleep and measure a current consumption of about 2mA, and when I exit light sleep and start advertising, I measure a peak consumption of about 16-20mA. case ESP_GAP_BLE_ADV_START_COMPLETE_EVT: //adv start complete event to...
by leogs01
Wed Jun 24, 2020 8:23 pm
Forum: ESP-IDF
Topic: Why do you have to disable BLE before going to light sleep mode ESP-WROOM-32D?
Replies: 0
Views: 1960

Why do you have to disable BLE before going to light sleep mode ESP-WROOM-32D?

case ESP_GAP_BLE_ADV_START_COMPLETE_EVT: //adv start complete event to indicate adv start successfully or failed if ((err = param->adv_start_cmpl.status) != ESP_BT_STATUS_SUCCESS) { ESP_LOGE(DEMO_TAG, "Adv start failed: %s", esp_err_to_name(err)); } else { ESP_LOGI(DEMO_TAG, "woke up and now starti...