mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-03 07:22:54 +01:00
c2f5fd3215
The notification, once enabled, can only be triggerd once per day, mind that when testing. Packet structure: ``` 00:c2:00:3a:01:00:00:00:01:88:13:00:00 00:c2:00: - chunked transfer type 2 3a: - command set goals/notificatrions 01: - 01 - set steps goal, 02 - set calories goal, 03 - both 00:00:00: - delimiter 01: - enable steps goal notification 88:13: - set steps goal (5000) 00:00 - delimiter ``` This is sent when goal notification switch is enabled in Zepp app: ``` 00:c2:00:3a:03:00:00:00:01:40:1f:00:00:01:2c:01:00:00 00:c2:00: - chunked transfer type 2 3a: - command set goals/notificatrions 03: - 01 - set steps goal, 02 - set calories goal, 03 - both 00:00:00: - delimiter 01: - enable steps goal notification 40:1f: - steps goal (8000) 00:00: - delimiter 01: - enable calories goal notification (seems to be not used in Neo) 2c:01: - set calories goal (300) 00:00 - delimiter ``` And when disabled: `00:c2:00:3a:03:00:00:00:00:40:1f:00:00:00:2c:01:00:00` Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2780 Co-authored-by: NekoBox <nekobox@noreply.codeberg.org> Co-committed-by: NekoBox <nekobox@noreply.codeberg.org> |
||
---|---|---|
.. | ||
activities | ||
adapter | ||
capabilities/password | ||
contentprovider | ||
database | ||
deviceevents | ||
devices | ||
entities | ||
export | ||
externalevents | ||
impl | ||
model | ||
service | ||
util | ||
GBApplication.java | ||
GBEnvironment.java | ||
GBException.java | ||
LockHandler.java | ||
Logging.java | ||
LoggingExceptionHandler.java | ||
SleepAlarmWidget.java | ||
Widget.java |