Error:Service ... for device ? not found
See original GitHub issueHello , 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:
- Created 5 years ago
- Comments:6
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, it is
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.