GithubHelp home page GithubHelp logo

alt236 / bluetooth-le-library---android Goto Github PK

View Code? Open in Web Editor NEW
856.0 856.0 307.0 13.65 MB

This library allows for easy access to a Bluetooth LE device's AdRecord and RSSI value. It offers additional functionality for iBeacons.

Java 78.25% HTML 4.53% Shell 0.38% Kotlin 16.85%

bluetooth-le-library---android's People

Contributors

alt236 avatar orthographic-pedant avatar ravidsrk avatar xrmx 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  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

bluetooth-le-library---android's Issues

Unable to include Library to my project

I am new to this android development. I am making an app to detect the BLE attributes of my Eddystone beacon.
screen shot 2018-04-04 at 4 34 42 pm

It is showing an error in onLeScan method. I would really appreciate if someone can help.

Thanks

Some issue in GattAttributeResolver

The service or characteristic id may have some error, for example:
public static final String LINK_LOSS = "00001804-0000-1000-8000-00805f9b34fb";
it should be 1803 for LINK_LOSS

Multiple devices connectivity in android

Hi,
I am trying to make this sample supportable for multiple devices but not able to successfully connect with multiple ones.
I read some where to create Multiple Gatt instances to support multiple devices but still got random disconnect.
Can you help me for this assignment, i am not expecting code but guidance will be more precious.

Distance

How would you compute the distance if there's no txPower?

what kind of beacon format (ibeacon)

hi all,
in my beacon device , can't assert as BeaconType.IBEACON.
how to revise it ?

02,0x1 04,no connected
1A,data len
FF,Manufacture
uuid ,major and minor id .
590002150112233445566778899AABBCCDDEEFF001020304

beacon raw data:
0x0201041AFF590002150112233445566778899AABBCCDDEEFF001020304C3

android ,6.0
android studio 3.01

Bluetooth-LE-Library---Android Crashes

05-11 10:54:58.546 26445-26445/uk.co.alt236.btlescan E/libc++abi: terminating with uncaught exception of type std::bad_alloc: std::bad_alloc
05-11 10:54:58.546 26445-26445/uk.co.alt236.btlescan A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 26445 (alt236.btlescan)

service

please can the device scan work as a service? so it can detect devices when the phone is not in use.

Android 6.0 not in LeScanCallback

In Android 6.0 appear information log below:
D/BluetoothAdapter: startLeScan(): null
And the program not in LeScanCallback (onLeScan), what's wrong with it ?
thanks~

Meaning of these values in the accurancy calculation

...in this method:

protected static double calculateAccuracy(int txPower, double rssi) {
  if (rssi == 0) {
    return -1.0; // if we cannot determine accuracy, return -1.
  }

  double ratio = rssi*1.0/txPower;
  if (ratio < 1.0) {
    return Math.pow(ratio,10);
  }
  else {
    double accuracy =  (0.89976)*Math.pow(ratio,7.7095) + 0.111;    //these
    return accuracy;
  }
}   

thanks

When removing batteries from the beacon device, the list doesnt get refreshed

Hi

I am using the sample here with the library, and i came across a situation where in, the beacon gets detected when the cell is put into it, but when removed, the list is not refreshed until i press the scan button. is there a way i could be able to track that a beacon device is no longer part of the list? Please assist?

i notice that onScanResult log also stops when the beacon is not detected,but i could not track the log anywhere in the code.

Thanks

Bluetooth

It says critical batteries but its not dead help

scanning the ble of ibeacon, Glide+okhttp3 load image very slow from server.

When the application starts, I first open the intentservice to download the audio, then opened the service to scan the Bluetooth equipment ibeacon. At this point, I found the picture from the server to download very slowly, in the local load is not affected.

I think the child thread may be blocked, how to solve it.

android os: huawei 6.0 and xiaomi 5.0

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.