cancel
Showing results for 
Search instead for 
Did you mean: 

Can GATT timeouts configured changed or shortened?

DS.4
Senior II


Everywhere I look it is written to be 30 seconds.
But Its too much time for me, Is there a parameters in Init or during connection I can change?

1 REPLY 1
ghrairim
ST Employee

Hello @DS.4 ,

The default GATT timeout is often set to 30 seconds, which is a balance between allowing enough time for a device with potentially slow communication and not waiting excessively long for a response. However, the timeout duration is not standardized and can vary depending on the implementation of the Bluetooth stack on the devices involved.

Remember : that setting the timeout too short might lead to unintended disconnections, especially in environments with interference or when communicating with devices that have slower response times. Always consider the trade-offs when adjusting such parameters.