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 Reply
  • So if I understand you correctly, you have a certificates.h file that looks something like this:

    // file: certificates.h
    
    #define CERT_A \
    "-----BEGIN CERTIFICATE-----\n"\
    "aaaaaaaaaaaaaaaaaaaaaaaaaaa\n"\
    "-----End CERTIFICATE-----\n"
    
    #define CERT_B \
    "-----BEGIN CERTIFICATE-----\n"\
    "bbbbbbbbbbbbbbbbbbbbbbbbbbb\n"\
    "-----End CERTIFICATE-----\n"
    
    #define CERT_C \
    "-----BEGIN CERTIFICATE-----\n"\
    "cccccccccccccccccccccccccccc\n"\
    "-----End CERTIFICATE-----\n"
    
    #define CERT_TO_BE_USED CERT_A
    

    And then you write CERT_TO_BE_USED to the modem?

Children
No Data
Related