Connecting ESP32/C3 from 2 phone via bluetooth

ankayca
Posts: 18
Joined: Wed Aug 26, 2020 4:58 pm

Connecting ESP32/C3 from 2 phone via bluetooth

Postby ankayca » Sat Dec 31, 2022 12:59 pm

Hi
Im working on an application which is require to controlling from 2 or more than 2 phone without wi-fi.
I tried mesh server examples of esp-idf but I cant provision esp from 2 phone.
I also tried almost all kind of server examples (including gatts, blue50_security_server ...) and I cant achieve to controlling led of esp32 from 2 phone simultaneously.
Am I have to make any modification on menuconfig to open multiconnection features ?
Or do you have any suggestion to solve this problem ?

Thanks a lot.

ankayca
Posts: 18
Joined: Wed Aug 26, 2020 4:58 pm

Re: Connecting ESP32/C3 from 2 phone via bluetooth

Postby ankayca » Sat Dec 31, 2022 2:57 pm

Okay I solved.
I used
https://github.com/espressif/esp-idf/is ... -747267130
suggestion
I call esp_ble_gap_update_conn_params(&conn_params); after ESP_GATTS_CONNECT_EVT in esp idf 's gatt server example.
Really I suprise when there are no post about this problem cause I suppose there must be many people want to connect esp to more than 1 phone with bluetooth.

Who is online

Users browsing this forum: Bing [Bot] and 361 guests