I'm trying to connect to ELM327 bluetooth device (serial communication) but I'm getting an error..
Unhandled exception. Tmds.DBus.DBusException: org.bluez.Error.NotAvailable: Operation currently not available
at Tmds.DBus.DBusConnection.CallMethodAsync(Message msg, Boolean checkConnected, Boolean checkReplyType)
at Tmds.DBus.Connection.CallMethodAsync(Message message)
at Tmds.DBus.CodeGen.DBusObjectProxy.SendMethodReturnReaderAsync(String iface, String member, Nullable`1 inSignature, MessageWriter writer)
at *****.ConnectAsync() in ********************
I have also tried to use ConnectProfileAsync() method with proper service UUID - same exception.
Elevating privileges with sudo also doesn't help.
Equivalent test code in Python3 with PyBluez works without problems.
I'm using Linux Ubuntu 20.04 on VM with USB BT dongle and dotnet sdk 3.1.402.
My test source code looks like this:
I'm trying to connect to ELM327 bluetooth device (serial communication) but I'm getting an error..
I have also tried to use ConnectProfileAsync() method with proper service UUID - same exception. Elevating privileges with
sudo
also doesn't help. Equivalent test code in Python3 with PyBluez works without problems.I'm using Linux Ubuntu 20.04 on VM with USB BT dongle and dotnet sdk 3.1.402. My test source code looks like this: