Please note: Friday June 18 is a holiday celebrating Juneteenth, please allow extra time for your order to arrive and plan accordingly.
0

Can't discover custom service on android app.
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Can't discover custom service on android app.

by AlbertoSM on Sat Nov 07, 2020 11:46 am

Hi,

I'm using Feather nrf52840 Express as a peripheral for an android app which act as a client.

In the Feather, I made a custom service following the Custom HRM example.

The problem is that the android app can not discover my custom service. It only gets the UUIDs for the Generic Access, Generic Attribute, Information and UART services.
Furthermore, Bluefruit Connect app shows the custom service with its characteristic and value perfectly.
This happens also with de DFU service. My own android app can not discover it but Bluefruit connect does.

So my question is, Is there anything special Bluefruit Conenct app does for discovering services? In my app I'm only using BluetoothGaTT.discoverServices() after connection is established.

AlbertoSM
 
Posts: 2
Joined: Sat Nov 07, 2020 11:27 am

Re: Can't discover custom service on android app.

by AlbertoSM on Sat Nov 07, 2020 3:04 pm

Well, I found something.
I was testing my android app on an Android 5.1.1 phone which has Bluetooth 4.1.
Then I tried in an Android 10 with Bluetooth 5.0 and the custom service is read.
Hope this is useful for somebody.

AlbertoSM
 
Posts: 2
Joined: Sat Nov 07, 2020 11:27 am

Re: Can't discover custom service on android app.

by franklin97355 on Sat Nov 07, 2020 3:07 pm

Thanks for posting your discovery.

franklin97355
 
Posts: 21882
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Please be positive and constructive with your questions and comments.