2023-02-02 09:07 PM
Steps I am following:
Hear the problem I am facing is it takes 3sec to establish a connection and then write an attribute all this process is taking upto 4sec.
I want to reduce connection time to 500ms at least. Since I will be knowing server details already, with this can I reduce this time?
I am trying but I am unable to achieve this.
Can someone help me with this?
Thank you.
2023-02-02 11:53 PM
Tell us more about the server, maybe you could speedup that process by making "Connection Interval" in both stm32wb and your server as small as possible (drains more battery)
2023-02-03 12:49 AM
Thank you for the response.
The server is developed on the ESP32 platform, Client is a battery-operated device developing on STM32WB55CGU6.
The server will be always advertising. The client will do the one-time scan and get MAC of server to make it ready to start the connection.
When a button is pressed in the client device, the client will start connecting with the server then write the data to the server and then disconnect from server
2023-02-03 03:29 AM
>developed on the ESP32 platform
Are you using arduino? maybe its just the time it takes for the esp32 to do its server thing
2023-02-03 03:57 AM
I am using espressif for server development.
As I know all the server details like UUID's can I make connection fast with the server instead of getting (reading characteristics) all these details from the server, Can I hardcode it in the client and write attribute data to the server?
2023-02-09 11:28 PM
Hi,
I tried with arduino IDE also but it takes same time to create connection around 5sec.
When I connect from the mobile app it is fast(with in 1sec). when I do connection from stm32wb55 client it takes more time