Skip to content

v1.0.4

Compare
Choose a tag to compare
@ec-blaster ec-blaster released this 22 Mar 21:13
· 59 commits to main since this release

Changelog:

  • Improved connection experience.
    You can now specify a custom timeout when you connect to the device. By default, the timeout is 3 seconds.

Breaking change:

  • The connect method has now 2 optional parameters:
    • connect_timeout: int (Optional)
      Specifies the amount of time (in seconds) we'll be waiting for the bluetooth device to connect. If it doesn't connect on time, it returns False.
      This parameter is optional. If you don't specify a value, a 3 seconds timeout is assumed.
    • disconnect_timeout : int (Optional)
      Specifies the amount of time (in seconds) that will be scheduled to automatically disconnect from the device. If it's not specified, the client does not disconnect until the object is disposed from memory.
      This parameter is optional. If you don't specify a value, a -1 is assumed (no automatic disconnect).

If you used this method with 1 parameter before, take into account that now the first parameter is connect_timeout.