Error in header File
Answer
4/13/18 6:36 AM

Hello everyone,

 I am following the example of readig two sensor values(which already on our community page). I am getting error in header file to be specific in void appInitSystem(void * CmdProcessorHandle, uint32_t param2); function. Error is "unknown type name  'uint32_t'  ".

Please guide...

Thank you. 

 

0 (0 Votes)
RE: Error in header File
Answer
4/13/18 8:31 AM as a reply to Kedar Dahivale.
Hello Kedar,

the type uint32_t is included via the header-file stdint.h . Usually, this header-file is included before your project's file is included in Main.c , but it seems this is not the case in your project.

To fix this, add #include "stdint.h" to your header-file, before the declaration of appInitSystem() .

Please tell me if this was helpful, and do not hesitate to ask further questions.

Kind regards,
Alex
0 (0 Votes)
RE: Error in header File
Answer
4/13/18 9:16 AM as a reply to Alexander Sawtschuk.

Hello Sir,

Thank you so much!

yep it worked now I can see the data .

0 (0 Votes)
Output of environmental sensor?
Answer
4/13/18 12:23 PM as a reply to Kedar Dahivale.

Hello Sir,

Where can I find more information on Environmental_compensateData() to get the correct temp reading. or can u guide on the same

0 (0 Votes)
RE: Output of environmental sensor?
Answer
4/13/18 12:47 PM as a reply to Kedar Dahivale.
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
0 (0 Votes)