Giter Site home page Giter Site logo

idevicesinc / sweetblue Goto Github PK

View Code? Open in Web Editor NEW
357.0 357.0 57.0 52.15 MB

BLE on Android, the easy way. THIS IS NOW DEPRECATED. Please visit website for info on new versions.

Home Page: https://sweetblue.io

License: GNU General Public License v3.0

CSS 0.48% HTML 0.60% Shell 0.46% Java 98.46%
android-library ble bluetooth java

sweetblue's People

Contributors

andredoubleu avatar ctirendi avatar dlayneidevices avatar dougkoellmer avatar noahidevices avatar pzaff avatar ryanhubbell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sweetblue's Issues

Some kind of phone-home analytics. (?)

Obviously opt-in...for UhOhs, asserts, maybe logging, etc., send a json packet to our server, perhaps then forwarded to flurry or whatever...direct flurry integration would be an annoying dependency but maybe there's some lightweight way to do it...hit their REST API directly or something.

Proper build system.

Should take pull requests, do some static analysis, code linting, etc., run against unit tests. Also have that fancy build:passing image (travis ci?) at the top of our README.

Pretty big task so it may get broken up more in the future.

Timeout for bonding (?)

Don't remember bonding requests ever spinning indefinitely...default is 10 second timeout for now though, so maybe make this configurable.

Wifi state management.

Anecdotal evidence suggests that BLE can work better with WiFi disabled. If it's the case, and managing WiFi state is more than a simple method or two, then we can add explicit methods to the API so that user can disable WiFi before connecting, before OTAs, etc.

In addition, we can have config options (off by default of course) that gate whether WiFi is turned off automatically for such operations.

Integrate BluetoothGatt.refresh()

This supposedly clears the discovered services cache, which is necessary for any devices that can change their services on the fly.

Bump priority for scan task in certain situations.

It's theoretically possible that a scan task is indefinitely subject to line-cutting in the task queue. Perhaps have some time limit (configurable) past which (if we're autoscanning or infinitely scanning) the scan task is given the same priority as reads/writes. Also argument to be made that an explicit startScan() call should have a higher priority as well.

Do something about potential queue flooding.

One can potentially flood the queue, putting tasks onto it faster than the queue can process them. Perhaps have enumerations for read/write/connect-fail callbacks indicating such a scenario, like if the queue has more than 100 tasks backed up. Actually maybe just for the read/write callback.

Add hooks for unit testing.

Need to have the back-end work with dependency injection, and not interface with Android Gatt layer directly. After that library logic will be unit-testable using a simulated gatt layer.

Methods for retrieving known devices from disk across app sessions.

Not really sure of the use case or what the API would look like yet, but we are tracking this already so maybe some interface to it would be helpful. For example an app that is meant to work with one device (e.g. fitness tracker) may want to forgo scanning on app start up if the mac address is known...i.e. they create a new device explicitly and just try to connect.

Be able to set override config options on a per-device basis.

This will involve splitting out a super class of BleManagerConfig and putting all the device-specific options in there, then having a method on BleDevice called setConfig. This is actually not a breaking change so can be implemented post v1.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.