Skip to content

Commit

Permalink
Fix BS444 connection problem
Browse files Browse the repository at this point in the history
Change BS444 connection type to public (instead of random)
  • Loading branch information
keptenkurk committed Oct 25, 2020
1 parent 5483efc commit 88d5740
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BS440.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,8 @@ def init_ble_mode():
# time_offset is used to convert to unix standard
time_offset = 1262304000
elif device_model == 'BS444':
addresstype = pygatt.BLEAddressType.random
# On BS410 time=0 equals 1/1/2010.
addresstype = pygatt.BLEAddressType.public
# On BS444 time=0 equals 1/1/2010.
# time_offset is used to convert to unix standard
time_offset = 1262304000
else:
Expand Down

2 comments on commit 88d5740

@rishi-tul
Copy link

@rishi-tul rishi-tul commented on 88d5740 Oct 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can u change the code to work with any device?

@keptenkurk
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was these 2 differences I found between the 410/440 and 444 445 type scales. I own just the BS440 so would not be able to tell specific differences for "all" devices...

Please sign in to comment.