hashtagchris / DotNet-BlueZ

A quick and dirty library for BlueZ's D-Bus APIs. Focus is on Bluetooth Low Energy APIs.
Apache License 2.0
103 stars 37 forks source link

A problem of subscribing to characteristic value. #9

Closed kiyoungsong closed 4 years ago

kiyoungsong commented 4 years ago

Hello, i tried to read my bluetooth device in Raspberry pi and i saw this message using subscribeToCharacteristic message : Error subscribing to characteristic value: Tmds.DBus.DBusException: org.bluez.Error.NotSupported: Operation is not supported 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 HashtagChris.DotNetBlueZ.GattCharacteristic.Subscribe()

and value = await characteristic.GetValueAsync(); length was 0, so i think characteristic.GetValueAsync(); wasn't working. what should do i do?