Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Add initial support for Casio GB-6900B #1377
This PR adds initial support for the Casio GB-6900B watch. It was tested only on GB-X6900B (the only one I have), but it should work on some other models (GB-6900B, GB-5600B) as well. Other models might be easy to add (e.g. GBA-400), but I haven't got any other Casio devices to test with.
The watch has the ability to save power by turning off bluetooth after some inactivity and turn it back on afterwards. However, this is completely untested.
I'm not entirely sure if I got the Gatt server with the threading right, since I'm not very familiar with Android development.
Looking forward to your comments!
Thanks a lot for your contribution. I will have a look at it shortly.
To get this right license-wise, I'm logging my findings here (please correct me if I'm wrong):
Mixing LGPL-3.0 code (Bluewatcher) with AGPL code (Gadgetbridge) is allowed, but AFAIU, the original LGPL code would first need to be converted to GPL code and can then be mixed with (Gadgetbridge's) AGPL code (see here: https://opensource.stackexchange.com/questions/5637/use-lgpl-code-in-an-agpl-project). The resulting "mixed" source code would then be partly licensed under the GPL and partly under the AGPL. This is not really possible in its current form because the code was at most copied in parts and taken as an inspiration for own development.
The original auther Juan Carlos Fernández Jara @masterjc states
So I'll try to contact him and ask for his opinion on how to proceed.
cpfeiffer left a comment
Great job, I think this is ready for merging
I've got one question for the device recognition based on
Thanks for applying - the remaining performConnected() calls are part of the initialization sequence (I should have documented that):