B4X:
For Each k As string In Characteristics .Keys
Log("key: " & k & " value: " & characteristics.Get(k))
Next
see what this gives you.
it looks like this problem is not unknown here. the values you get when running the above snippet may come out looking like garbage. they may be in bytes and would need to be converted. so after the log statement above, try inserting:
B4X:
Log( bc.HexFromBytes( Characteristics.Get(k) ) )
i just took a quick look at the ble2 library. the valules in the map are byte arrays, so unless you're looking to deal with them at that level, you'll have to convert them to a hex string (as per above) in order to make any sense of them.
of course, this still doesn't address your original problem regarding a null value. either the value is actually null or the key used to access it isn't in the map to begin with. being able to look at the map as a whole would help resolve that.
Last edited: Feb 10, 2022
"A little kindness - as little as required by applicable law."
"It can't hurt to read the thread before replying."
"Show code; code always does what you tell it to do, not always what you tell us it does."