nexussays/ble.net

read characteristic value is not working but write & notify works?

Closed this issue · 2 comments

hi,

i am having a weird issue with my HMSoft Ble Device, i can see data on receiving end by using gattServer.WriteCharacteristicValue(service_guid.Value, char_guid.Value);

but the gattServer.ReadCharacteristicValue(service_guid.Value, char_guid.Value); gives me a static value, while notifier on same GUID are giving new values.

var notifier = gattServer.NotifyCharacteristicValue(
service_guid.Value,
char_guid.Value,
bytes => {
readValue = bytes.AsUtf8String();
//var txtLogs = FindViewById(Resource.Id.txtLogs);
txtLogs.Text += $"current notifier result: {readValue} {System.Environment.NewLine}";
});

iOS or Android?

Closing because I'm unable to replicate. Feel free to re-open with repro steps!