Skip to main content
DS.4
Senior
April 4, 2024
Question

Can GATT timeouts configured changed or shortened?

  • April 4, 2024
  • 1 reply
  • 716 views


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?

This topic has been closed for replies.

1 reply

ST Employee
April 15, 2024

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.