question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error:Service ... for device ? not found

See original GitHub issue

Hello , i m new to the library .i have finally successfully found my device using the library . what i want to do now is writing characteristic in order to control my device . the service UUID and characteristic UUID are given . so i m trying to do it using this code (looks bad but i will improve it when it will work :p )

startScan() {
        this.setState({scanning: true});
        this.manager.startDeviceScan(null, null, (err, device) => {
            if (err) {
                alert(err);
                return;
            }
            if (device.name === 'Wearable 4') {
                alert('found it');//this is shown
                this.manager.stopDeviceScan();
                this.setState({scanning: false});
                device.connect()
                    .then((device) => {
                        alert(device.name + ':' + device.id);//this is shown
                        device.writeCharacteristicWithoutResponseForService(
                            "713D0000-503E-4C75-BA94-3148F18D941E",
                            "713D0003-503E-4C75-BA94-3148F18D941E",
                            "0xff000000"
                        ).then((success) => {
                            alert(success);
                        }).catch((error) => {
                            alert(error)
                        })
                    })
                    .catch((error) => {
                        alert(error);
                    });
            }
        });

i m always receiving " Error Service 713D0000-503E-4C75-BA94-3148F18D941E for device ? not found.

I appreciate your help and thank you in advance

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6

github_iconTop GitHub Comments

3reactions
dariuszseweryncommented, May 25, 2018

Yes, it is

0reactions
akshayoyo16commented, Jun 25, 2019

Is there a concept of timeout in this startDeviceScan function ?? like if i only want to scan for like 20 seconds, & if i dont find the device i am looking for in 20 seconds then i dont want to move further.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error:Service ... for device ? not found #267 - GitHub
i have finally successfully found my device using the library . what i want to do now is writing characteristic in order to...
Read more >
How to Fix Error Service Unavailable error on Samsung ...
Solution 3: Factory Reset. If nothing seems to be working, there nothing you can do but reset your device entirely. Step 1: Head...
Read more >
Uncaught Error: Service functions is not available
Auth and firestore are working, but the failure. Uncaught Error: Service functions is not available. is thrown, when running my app.
Read more >
Windows Defender not running, error: Service cannot be started
Hi,. The service cannot be started, either because it is disabled or because it has no enabled devices associated with it. This could...
Read more >
Policy Falsified Error: Service not found | Layer7 API ...
Hi everyone, I'm following an old Lab Workbook dealing with Voonair example. I'm stuck at the very first steps. Here is the resume...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found