This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Provision certificates from the certificates.h is not setting the #define

I have just switched from SDK version 1.0.0 to SDK 1.1.0 and I am using the MQTT FOTA example

I had the example project working when I was using v1.0.0 of the SDK

I have checked "Provision certificates from the certificates.h file" and clicked the configure button

but in main.c the define at line 28 has not been set so the certificates .h file is not included.

I notice that the name of the define in the menu settings is <PROVISION_CERTIFICATES>

and in the code on line 28 it is CONFIG_PROVISION_CERTIFICATES

Parents
  • Hi.

     

    I notice that the name of the define in the menu settings is <PROVISION_CERTIFICATES>

    and in the code on line 28 it is CONFIG_PROVISION_CERTIFICATES

     Yes, this is correct. A Kconfig option will generate the #define CONFIG_<name of option>.

     

    I have checked "Provision certificates from the certificates.h file" and clicked the configure button

    but in main.c the define at line 28 has not been set so the certificates .h file is not included.

     What do you mean by that. Did it not change color?

    Did you build the project again after applying the settings?

    Or did you empty the build directory?

    If you place a #error inside the #ifdef, does it still compile?

    Best regards,

    Didrik

  • certificates.h file is It is still grayed out

    I did a rebuild (which should do a clean and build) still no change

    However, when I put random text inside the ifdef then I get a compile error. 

    So it is just a type of display problem and not actually leaving out the certificates.h

Reply Children
Related