Description
Answers checklist.
- I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
- I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
- I have searched the issue tracker for a similar issue and not found a similar issue.
IDF version.
v5.4
Espressif SoC revision.
ESP32 (rev 1.1)
Operating System used.
Windows
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
PowerShell
Development Kit.
Custom Board
Power Supply used.
USB
What is the expected behavior?
My project involves connecting a cellphone to an ESP32, which will control a mesh network of other ESP32 devices.
What is the actual behavior?
I created the BLE GATT Server, and it works well — handling sending, receiving, notifications, connections, and disconnections. However, when I attempt to connect to an unprovisioned mesh device, it stops advertising. That said, if a connection is already established, it remains stable.
The problem arises when the connection is lost or manually disconnected — advertising does not restart. Interestingly, esp_ble_gap_start_advertising does not return an error, and the ESP_GAP_BLE_ADV_START_COMPLETE_EVT callback is still received, as if everything is functioning normally.
Steps to reproduce.
1 - Clone the repository:
git clone https://github.com/DartDragunov/Target_Controller
3 - Flash it to an ESP32.
4 - Open nRF Connect — the ESP32 will appear in the list of available devices.
5 - Clone the second repository:
git clone https://github.com/DartDragunov/Target
7 - Flash it to another ESP32.
8 - The connection will be established automatically, and the first ESP32 will disappear from nRF Connect.
Debug Logs.
I won't include logs since nothing happens — you'll see it yourself with the example.
Diagnostic report archive.
No response
More Information.
No response