GoogleChrome / GoogleChrome/samples

Stops after getting service

Open
#446 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5.9k
Forks
2.4k
Avg merge
24m
Merged PRs (30d)
2

Description

After
` .then(server => {
log('Getting Battery Service...');
return server.getPrimaryService('battery_service');
})`
It doesn't work and doesn't show any error either.

I changed the UUID to other services and it stops after getting service as well.
However, it shows that the device is connected!
I am sure that I put the UUID of the server in optionalService when i start the request.

One more question is that what the difference of optionalService and Service is. If I use optionalService, it works well but if i use Service, there will be error.

I am stuck for two weeks now... anyone knows what happened? Thanks!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.