I have the following code that reads SpO2 history data:
I have the following code that reads SpO2 history data:
Not sure for the spo2 iterator, but I know that I've seen devices where iterator.data was null (e.g. PressureHistory) , so I do check this for null as well and this did solve some issues for me... It's not happening very often though, actually, it's a very rare issue, but it happens...
getOxygenSaturationHistory hasn't really worked right on any device since it was introduced, with strange values, order, etc.
See: