bluetooth-serial-port icon indicating copy to clipboard operation
bluetooth-serial-port copied to clipboard

inquiretest always throws Exception : cannot find service

Open ShiverZm opened this issue 4 years ago • 7 comments

ShiverZm avatar Sep 23 '20 07:09 ShiverZm

Do you have bluetooth receiver connected to your computer ?

Agamnentzar avatar Sep 23 '20 13:09 Agamnentzar

the same, always throws Exception:

  • Message "(10108) This service does not exist. The service is not found in the specified namespace. \r\n" std::basic_string,std::allocator >

ShiverZm avatar Sep 24 '20 11:09 ShiverZm

in a addition, i comment this "cout << "\tchannel ID: " << inq->SdpSearch(d.address) << endl",it can work

ShiverZm avatar Sep 24 '20 11:09 ShiverZm

And win10-connect-Android always throws Exception:Cannot Connect: (10064) The socket operation failed because the target host was down. it broke down at "connect" return -1, i surely they are connected.

My iphone never is like this, it can work but that is not i want. i want comunicate with android app.

ShiverZm avatar Sep 24 '20 11:09 ShiverZm

Yeah, SdpSearch seems to not work correctly, you can just use value of 1 for channel id. Also be aware that this library connect using COM protocol, so it will only connect to devices that support that protocol.

Agamnentzar avatar Sep 24 '20 15:09 Agamnentzar

Could you mind telling me something about bluetooth-add-service by sdp?i dont know how to nearly

ShiverZm avatar Oct 13 '20 16:10 ShiverZm

I don't know anything about that

Agamnentzar avatar Oct 13 '20 16:10 Agamnentzar