Releases: sroemer/scale-communication
scale-communication 0.3.0
This version after waiting for a stable weight from the 'FFB2' notifications also waits for BIA to be finished, which is detected based on an 'FFB3' indication. So far in the 'FFB3' indication data only the weight but no BIA data was found. Therefore no additional data is provided, but a verification of matching weight values was added.
Sample output:
- INFO Discovering BLE devices
- INFO Connecting to scale 'Crenot Gofit S2'
- INFO Connection to scale 'Crenot Gofit S2' established
- INFO Waiting for weight measurement (uuid:ffb2 timeout:15s)
- INFO Waiting for BIA (uuid:ffb3 timeout:15s)
- INFO - Weight: 94.30kg
scale-communication 0.2.0
This version adds a timeout when waiting for the weight to stabilize.
Additionally a command line parser is added and following command line arguments are available by now:
--print_dev_info enable output of device information
--print_svc_info enable output of service information
--timeout TIMEOUT timeout when waiting for weight to stabilize
scale-communication 0.1.1
Previous version used frequent requests of the device information data from the scale for this purpose, which was just a dirty quirk.
This version now uses asyncio.sleep()
instead of requests for device information.
scale-communication 0.1.0
This is the initial version of my approach to implement a client software and understand the protocol for communication with my 'Crenot Gofit S2' scale. This version only gets the weight value from the scale by
- Discovering BLE devices
- Connecting to the scale
- Triggering the scale to send notifications containing the weight value (characteristic 'FFB2')
- Waiting until the weight stabilizes
- Printing the measured weight
It uses a dirty quirk to keep the scale sending its notifications by frequently requesting device information from the scale.
Sample output:
- INFO Discovering BLE devices
- INFO Connecting to scale 'Crenot Gofit S2'
- INFO Connection to scale 'Crenot Gofit S2' established
- INFO Starting notifications for uuid FFB2
- INFO Waiting for weight to stabilize
- INFO - Weight: 95.10kg