Hello Kedar,
the function
Environmental_compensateData()
can be used on the data you received from calling
Environmental_readData()
.
You will find more information regarding that function
here .
You can also call the function
Environmental_readCompensatedData()
, to skip having to read data first.
Keep in mind that the compensation is just a static offset applied to the temperature, to compensate for the fact that the XDK's housing heats up and influences the temperature measured by the BME280.
Please tell me if this was helpful, and do not hesitate to ask further questions.
Kind regards,
Alex