Sometimes, if a GATT notification occurs, and I try to get the characteristic value through characteristic.getValue()
multiple times, the call suddenly starts to return an empty array.
That mostly happens on the first notification in that connection, and seems to be quite random.
How can I get characteristic.getValue()
to be consistent?
I have a Pixel 3; maybe it's an implementation issue.