Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android code Couldn't search Ble Shiled device! #3

Open
dparadox opened this issue Mar 31, 2015 · 4 comments
Open

Android code Couldn't search Ble Shiled device! #3

dparadox opened this issue Mar 31, 2015 · 4 comments

Comments

@dparadox
Copy link

Hello, I'm trying to make to work the SimpleControls example using the same Api. 18
but I got the message Couldn't search Ble Shiled device!. The binaries example work perfectly.

I have the BLE Mini

Some idea?

Thanks

@Cheong2K
Copy link
Contributor

Cheong2K commented Apr 1, 2015

Please try Google Play version "BLE Controller" to see if it works.

@dparadox
Copy link
Author

Yes it's works but ths implementation not, i would like to have same implementation.

@ghost
Copy link

ghost commented Nov 4, 2015

Are there any plans to update this source code with the latest version of the application?

@mnottale
Copy link

Had the same issue that I fixed by changing the offset used in the uuid comparison code:

    private BluetoothAdapter.LeScanCallback mLeScanCallback = new BluetoothAdapter.LeScanCallback() {

        @Override
        public void onLeScan(final BluetoothDevice device, final int rssi,
                final byte[] scanRecord) {

            runOnUiThread(new Runnable() {
                @Override
                public void run() {
                    byte[] serviceUuidBytes = new byte[16];
                    String serviceUuid = "";
                    for (int i = 32 - 6, j = 0; i >= 17 - 6; i--, j++) {   // <--- HERE
                        serviceUuidBytes[j] = scanRecord[i];
                    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants