In your application makefile
Change something like below to your path in resources:
$(NAME)_RESOURCES := apps/aws/iot/rootca.cer \
Change below to your path accordingly:
Thank for your reply, but my question is if i would like to change the directory of certificate, I mean if I want to create a new folder for example, under $root/ apps/myProject/resources .. and put my certificates here, then change the path accordingly in get_aws_credentials_from_resources() same for the make file, it should work or not, because I tried to do it but always the path for this certificates remains unknown !!
1 of 1 people found this helpful
The makefiles are written such that the resources directory is pointed by $(SOURCE_ROOT)resources.
The parameter $(NAME)_RESOURCES takes the by default path as 43xxx_Wi-Fi/resources/<mentioned_directory>
Hence changing the path will also require changing the makefiles to point to the directory under $(SOURCE_ROOT) i.e., 43xxx_Wi-Fi
Besides the resource_get_readonly_buffer() parses the parameter based on underscore "_" from the resource directory.
Placing this resources path fixed in the makefiles helps us to manage all the resources together as the wifi firmware, blob, other html, etc is stored in resources.
We would prefer keeping this structure unless there is some very stringent requirement.
It's actually not hard to support that.
The benefit is user can complete put all a project related files in one single folder.