1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-24 07:38:45 +02:00
Commit Graph

33 Commits

Author SHA1 Message Date
cpfeiffer
11884d8073 Improve logging 2015-06-01 21:47:02 +02:00
Daniele Gobbetti
228e922ce7 forgotten refactor of a variable 2015-06-01 21:47:01 +02:00
Daniele Gobbetti
e4076dc725 Ingesting the activity data the right way, but they are still being thrown away afterwards. 2015-06-01 21:47:01 +02:00
cpfeiffer
92caed5af4 Some cleanup 2015-06-01 21:47:01 +02:00
cpfeiffer
637b43e892 Also wait for descriptor reads and writes
(not just characteristic reads/writes)

This fixes initialization of notification characteristics
(activity, sensor data, battery, ...)
2015-06-01 21:47:01 +02:00
cpfeiffer
f004b7b11c WIP for fetching activity data
This probably affects #44 and #45

Thanks go to Daniele Gobbetti <daniele@gobbetti.name>!
2015-06-01 21:47:01 +02:00
Daniele Gobbetti
7e2545f9b4 Use constants instead of hardcoded values 2015-05-21 18:19:07 +02:00
Andreas Shimokawa
c4f7fc1531 Start App on Pebble when tapping it AppManager 2015-05-18 22:20:01 +02:00
Andreas Shimokawa
c37cacf43d Remove id and index from GBDeviceApp in favor of UUIDs 2015-05-18 20:56:19 +02:00
cpfeiffer
d1d3e758d9 Support configurable notifications. Closes #53
To close #29, we need to have a bit more configuration options than
just the number of vibrations. E.g.
- duration
- pause
- LED flashing (again, number of flashes, duration and pause, but also
  the colour and maybe which LEDs)

Also implements reboot-functionality for Mi Band.
2015-05-17 22:57:37 +02:00
cpfeiffer
27d725853f Add extra handler for generic notifications
(instead of misusing onSMS handler). Pebble still does that,
but not everybody has to.

Small step for #53
2015-05-13 21:55:22 +02:00
Andreas Shimokawa
c81e28c030 simplify code 2015-05-12 20:32:34 +02:00
Andreas Shimokawa
1b2f20160a fix some lint warnings, mostly simplifications 2015-05-12 20:09:35 +02:00
cpfeiffer
9a26769c3e Search & replace: use slf4j for logging instead of Logcat directly
For a start, use android-logger as backend. Needs a better configuration
but no time right now.

For file-logging we will use logback as slf4j-implementation.
2015-05-12 06:33:37 +02:00
cpfeiffer
b2518ff927 Discovery + pairing now works
User info is asked on demand before starting the actual pairing.
When no (valid) user info is given, dummy user infor will be  used instead.
2015-05-07 23:52:44 +02:00
cpfeiffer
a23690c8e1 Initial support for Mi Band specific settings
(User info for now).

TODO: We need to have that information *before* starting a connect
2015-05-07 01:32:17 +02:00
cpfeiffer
50034e0bfe Request battery info in initialize() 2015-05-05 23:25:54 +02:00
cpfeiffer
9df661bd96 Initial (ugly) support for device discovery and pairing (#3) 2015-05-05 00:48:54 +02:00
Andreas Shimokawa
f143c9ec54 androidstudio vs. eclipse :/ 2015-05-01 01:49:43 +02:00
cpfeiffer
5a458611e2 Set the time during initialization. Necessary for steps tracking.
Also see #31
2015-04-27 21:43:57 +02:00
Andreas Shimokawa
613ff1fc91 Pebble: corrections to PebbleIoThreads, better logging 2015-04-26 00:54:41 +02:00
Daniele Gobbetti
98696ce9e2 Implement setting the time on the miband.
It works from the debug activity, since I am not sure about the value of
the ts argument, it always sets the current time.
2015-04-23 14:11:57 +02:00
Andreas Shimokawa
fbbc808ca8 Make GBDevice parcable to make passing it via Intents more convinient 2015-04-20 11:58:59 +02:00
cpfeiffer
4a1a1d59be battery info hooked in, dummy for pebble 2015-04-19 22:31:09 +02:00
cpfeiffer
686ed312d6 #15 properly return firmware version 2015-04-19 22:23:53 +02:00
cpfeiffer
2dcd95a1f5 #15 support for reading firmware version and battery info 2015-04-19 22:20:47 +02:00
cpfeiffer
2b1157ca67 #15: notify on incoming calls 2015-04-19 15:15:53 +02:00
cpfeiffer
24c3903eef #15 update device state to INITIALIZED when user info was sent 2015-04-19 15:11:50 +02:00
Andreas Shimokawa
dd12bb11b2 reformat code with androidstudio 2015-04-19 11:28:03 +02:00
cpfeiffer
09914e6da0 #15 Initial support for MI Band
1) The MAC address has to be added manually for now (Settings -> Debug) 
2) Configure other notifications as desired
3) After doing that, restart Gadgetbridge, after that, the device should
be visible.
4) Tap it to connect
5) Try the Debug activity via the Menu to send some dummy notifications
=> Your MI should vibrate and blink

Also: add some extra files necessary to support Eclipse ADT. To be
migrated to Andmore, later.
2015-04-19 02:37:29 +02:00
Andreas Shimokawa
7ad1bfbdb1 reformat code with androidstudio 2015-04-14 10:29:09 +02:00
cpfeiffer
dbb0d85165 Added missing dispose() method 2015-04-14 02:04:59 +02:00
cpfeiffer
1f31c1d79c Next refactoring: the road to support BT and BT LE 2015-04-14 02:04:34 +02:00