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

BluetoothLeGatt Sample #89

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

danardelean
Copy link

Fixes:

-Converted to JavaList and JavaDictionary to work with the ExpandableList
-Use SetAdapter instead of Adapter property
-Filter the already added devices OnLeScan using bluetooth address and not the object itself to avoid adding the same device more than once
-Modified the method Lookup in SampleGattAttributes that was crashing the application

Improvments:
-When manually disconnecting from a device I am also closing the connection (trying to reuse the connection on some devices will take almost one minute to have the connection established again)

Fixes:

-Converted to JavaList and JavaDictionary to work with the ExpandableList
-Use SetAdapter instead of Adapter property
-Filter the already added devices OnLeScan using bluetooth address and not the object itself to avoid adding the same device more than once
-Modified the method Lookup in SampleGattAttributes that was crashing the application

Improvments:
-When manually disconnecting from a device I am also closing the connection (trying to reuse the connection on some devices will take almost one minute to have the connection established again)
@conceptdev
Copy link
Contributor

Thanks for submitting, we'll review shortly

@gabornemeth
Copy link

If this is going to be merged, my pull request has to be canceled, as it fixes the same errors but not all of them. #73

Copy link

@sebvinnac sebvinnac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it can be nice if you add
if (Build.VERSION.SdkInt >= BuildVersionCodes.M) { RequestPermissions(new String[] { Android.Manifest.Permission.AccessCoarseLocation }, PERMISSION_REQUEST_COARSE_LOCATION); }

in the DeviceScanActivity.OnCreate
after the base.OnCreate

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

Successfully merging this pull request may close these issues.

None yet

4 participants