It is pretty strange, at my side it seems to work properly. Probably the server takes some seconds before of answering with the pressure value, I think that if you load using the
addLoadEvent(); method first the
getPressure(); function instead of the
getDeviceLocation(); can make the trick.
All the best.