1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-08 22:51:37 +02:00
Gadgetbridge/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service
NekoBox c2f5fd3215 Fix Amazfit Neo daily steps goal and notification, fixes #2773 (#2780)
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>
2022-07-30 21:37:21 +02:00
..
btclassic Sony WH-1000XM3: Read information from device 2021-12-23 11:39:26 +01:00
btle Update FwAppInstallerActivity progress bar on SetProgressAction 2022-07-05 19:54:52 +02:00
devices Fix Amazfit Neo daily steps goal and notification, fixes #2773 (#2780) 2022-07-30 21:37:21 +02:00
receivers multi-device-support (#2526) 2022-06-14 18:05:41 +02:00
serial Mi Band 5: Send GPS location to band during workout 2022-06-09 10:32:26 +02:00
AbstractDeviceSupport.java Fossil Hybrid HR: Show app versions 2022-07-04 17:12:41 +02:00
DeviceCommunicationService.java Adjust service for CalendarReceiver for multidevice (#2765) 2022-07-20 17:29:40 +02:00
DeviceSupport.java update license headers 2021-01-10 23:38:13 +01:00
DeviceSupportFactory.java Huami: Display native alarm notification 2022-07-05 19:57:13 +02:00
NotificationCollectorMonitorService.java update license headers 2021-01-10 23:38:13 +01:00
ServiceDeviceSupport.java multi-device-support (#2526) 2022-06-14 18:05:41 +02:00