Closed crane-soft closed 1 year ago
I've made some more tests. When using the name of my device, its works:
central.scanForPeripheralsWithNames(new String[]{"HELTH-Temper-Device"});
I just tried to reproduce your issue, but it seems to work fine on my phone. I used a thermometer I have lying around....
The most likely explanation of your issue is that you are not including the HTS service UUID in the advertisement. You can verify that with apps like NRF Connect.
You are right, I can no longer reproduce the problem. I have made many changes to the sample app and it works perfectly. I also tested your original sample app again and no problem either. I have no idea what went wrong there. Anyway you can close this issue.
I successfully got the sample app running with my own Arduino based health temperature device using the HTS-SERVICE-UUID. Then I tried to reduce peripheral scanning by deleting some UUIDs from the scan list in the startScann function:
But strangely the app no longer recognizes my temperature device. Whenever I delete just one UUID from the list, my device is no longer detected.
Attached my logcut: