1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-30 03:30:30 +02:00
Commit Graph

2051 Commits

Author SHA1 Message Date
Erik Johansson
439ade356e Print a bit less information in debug driver 2018-11-15 21:10:15 +01:00
Erik Johansson
9ad07a80fd Always include short code in prettyPrint 2018-11-15 20:46:44 +01:00
Erik Johansson
779b5dcbd5 Add GATT constants and pretty print them in debug driver 2018-11-15 20:12:36 +01:00
Erik Johansson
0595e5acbf Test if BF700 works more like a BF710
Issue #350
2018-11-14 21:51:31 +01:00
Erik Johansson
086ab695c9 Accept BF700 as name for Beurer BF700 2018-11-12 21:39:15 +01:00
Erik Johansson
dd17db5395 Remove unused method 2018-11-12 21:28:28 +01:00
Erik Johansson
0b470cf9b9 Convert to using androidx instead of support library
Since AndriodX is the new support library.
2018-11-05 21:45:00 +01:00
OliE
51e922d1ae updated version to 1.8.3 2018-11-04 07:49:08 +01:00
Hosted Weblate
f81c25fb97 Merge branch 'origin/master' into Weblate 2018-10-29 21:42:05 +01:00
ArthurReinhart
4babc70ec0 Translated using Weblate (Spanish)
Currently translated at 100.0% (216 of 216 strings)

Translation: openScale/Strings
Translate-URL: https://hosted.weblate.org/projects/openscale/strings/es/
2018-10-29 21:42:04 +01:00
Erik Johansson
dfa8f20fee Revert "Try connectGatt with autoConnect = true if it fails with autoConnect = false"
This reverts commit 2cc98f4416.
2018-10-29 21:41:43 +01:00
Erik Johansson
4fdba82133 Merge BLE rework/fixes done in #335 2018-10-29 21:36:09 +01:00
OliE
931666b89c re-open database without caching sql -shm, -wal files 2018-10-27 13:45:44 +02:00
Erik Johansson
4ace7319e0 Log name of selected user 2018-10-15 22:02:01 +02:00
Erik Johansson
e97b176529 Stop timeout handler before connecting to scale 2018-10-15 21:57:17 +02:00
Erik Johansson
23491ee60c Remove call to readPhy added in 1929a7546 2018-10-14 22:37:55 +02:00
Erik Johansson
9ef17a9c6a Let the LE scan run while connecting
To see if it helps #341
2018-10-14 22:34:47 +02:00
Erik Johansson
d5b5eb58d4 Revert "Continue even if discoverServices return false"
This reverts commit d29884d0ff.
2018-10-14 22:16:37 +02:00
Erik Johansson
eae59b09e4 Improve BluetoothTrisaBodyAnalyze
PR #342
2018-10-13 20:16:59 +02:00
Erik Johansson
7940ad95ed Remove unused imports 2018-10-13 20:09:26 +02:00
Erik Johansson
4ff78eb77e Upgrade build tools 2018-10-13 19:31:46 +02:00
Erik Johansson
09b0c81a0d Add Vietnamese to language list 2018-10-13 19:28:14 +02:00
Erik Johansson
d29884d0ff Continue even if discoverServices return false
To see if it helps #341
2018-10-13 19:21:17 +02:00
Maks Verver
28cee4ea04 Add Converters.fromSignedInt* methods. 2018-10-13 16:12:31 +02:00
Maks Verver
d9885b967f Create overloads of Converters.toInt* that write to an existing buffer.
This is symmetric with Converters.from*Int* which take a buffer and offset too.
2018-10-13 15:24:31 +02:00
Maks Verver
90ea78f489 Add Converters.toInt16Le() for symmetry with toInt16Be(). 2018-10-13 15:24:31 +02:00
Maks Verver
94d138b9af Rename Converters.toUnsignedInt* to Convertors.toInt*.
These functions work equally well with signed values.
2018-10-13 15:24:31 +02:00
Maks Verver
303aedb4e7 Reuse Converters.fromUnsignedInt24Le() to implement getBase10Float().
From the observed data, it's not clear whether the mantissa should be
interpreted as signed or not. Since two metrics encoded as base-10 floats
(weight and resistance) cannot be negative, and the Trisa Health Vital app
interprets the mantissa as unsigned, we will treat it as unsigned here, too.
2018-10-13 15:24:31 +02:00
Maks Verver
b17c1971fb Use resistance measurement to calculate body composition data.
Coëfficients were obtained by reverse-engineering the discontinued Trisa Vital
Bluetooth app. The resulting figures do not seem to be very accurate.
2018-10-13 15:24:31 +02:00
mahmut özcan
9589dc3226 Translated using Weblate (Turkish)
Currently translated at 90.2% (195 of 216 strings)

Translation: openScale/Strings
Translate-URL: https://hosted.weblate.org/projects/openscale/strings/tr/
2018-10-13 09:39:38 +02:00
Truc Hoang
4883b0e3c0 Translated using Weblate (Vietnamese)
Currently translated at 100.0% (216 of 216 strings)

Translation: openScale/Strings
Translate-URL: https://hosted.weblate.org/projects/openscale/strings/vi/
2018-10-10 06:41:09 +02:00
Erik Johansson
2cc98f4416 Try connectGatt with autoConnect = true if it fails with autoConnect = false
See #335
2018-10-09 21:41:02 +02:00
Erik Johansson
bbbb91ecdd Disconnect after setting initial weight for new user
To see if it helps the problem reported by @Alejandro131 in #335.
2018-10-09 21:30:23 +02:00
Truc Hoang
d384acf48f Added translation using Weblate (Vietnamese) 2018-10-09 05:12:06 +02:00
Erik Johansson
960c7e8f30 Wait a bit between stopping LE scan and connecting
To see if it helps @ReidarHH in #335
2018-10-08 21:36:19 +02:00
Erik Johansson
2f1b7663b7 Descriptor 0x2902 is the one that should be used to enable notifications
Both according to
https://www.bluetooth.com/specifications/gatt/viewer?attributeXmlFile=org.bluetooth.descriptor.gatt.client_characteristic_configuration.xml
and the bt snoop log in #319 (from @Alejandro131)
2018-10-08 21:12:34 +02:00
OliE
da5dfcaa2d Merge remote-tracking branch 'origin/master' 2018-10-08 20:04:06 +02:00
OliE
8a9e07977d Merge branch 'UseCaseTests'
Conflicts:
	android_app/app/src/androidTest/java/com/health/openscale/gui/AddMeasurementTest.java
2018-10-08 20:01:55 +02:00
OliE
be805a108b change deprecated import of LargeTest annotation 2018-10-08 20:00:06 +02:00
Erik Johansson
c03d8c7601 Log write type in debug driver 2018-10-07 22:27:01 +02:00
Erik Johansson
8d47f9b968 Try to run all ble commands on the main thread 2018-10-07 22:26:40 +02:00
Erik Johansson
c36328b7d7 Remove unused imports 2018-10-07 19:13:35 +02:00
Allan Nordhøy
3ed5acd2f0 Translated using Weblate (Norwegian Bokmål)
Currently translated at 100.0% (216 of 216 strings)

Translation: openScale/Strings
Translate-URL: https://hosted.weblate.org/projects/openscale/strings/nb/
2018-10-07 18:19:11 +02:00
Yaron Shahrabani
8cceed2b4f Translated using Weblate (Hebrew)
Currently translated at 99.5% (215 of 216 strings)

Translation: openScale/Strings
Translate-URL: https://hosted.weblate.org/projects/openscale/strings/he/
2018-10-07 18:19:11 +02:00
Maks Verver
16011b7e67 Move static helper methods to TrisaBodyAnalyzeLib and add unit tests for them. 2018-10-07 15:05:22 +02:00
Maks Verver
ce615c57b5 Store device password in SharedPreferences.
This way, the scale has to be paired only once.
2018-10-07 15:05:22 +02:00
Maks Verver
827dbced6e Add support for pairing.
This removes the need to hardcode the password. Currently, the device
password which is obtained by pairing is stored in memory only, which
means the scale must be paired again every time the app is restarted.
2018-10-07 15:05:22 +02:00
Maks Verver
5136bc3660 Add code to support Trisa Body Analyze 4.0 smart scale. 2018-10-07 15:05:22 +02:00
OliE
f073148c4e change deprecated import of LargeTest annotation 2018-10-07 13:18:06 +02:00
OliE
1f8facacc8 update version to 1.8.2 and updated target version to sdk 28 2018-10-07 12:57:22 +02:00