AWS IoT SDK integration
Posted: Thu Aug 16, 2018 10:03 am
Hi,
I am trying to expand on some of the demos in the AWS IoT SDK / ESP-IDF in order to interact with a shadow. Right now I'm unable to compile my code though: I have an app that works without the IoT functions, but cannot work out how to compile against the libraries and headers from https://github.com/aws/aws-iot-device-sdk-embedded-C (in fact, I can't event compile the libraries from the SDK).
Right now I have the following structure:
- app_dir/:
- Makefile
- main/:
- component.mk
- Kconfig.projbuild
- app.c
- certs/ (certificates)
- include/
- aws_iot_config.h
- aws_dir/ (link to the aws-iot-device-sdk-embedded-C directory)
I have the headers necessary included in the component.mk (COMPONENT_ADD_INLUDEDIRS := include aws_dir/include aws_dir/platform/linux/common aws_dir/platform/linux/mbedtls); but compilation fails because no libraries for the AWS code exist. I can't find concrete examples on how to compile this; the AWS example shadow READMEs all use custom makefiles, the same examples ported into the esp-idf repo use the component.mk format but do not appear to work.
Thanks in advance!
Matt
I am trying to expand on some of the demos in the AWS IoT SDK / ESP-IDF in order to interact with a shadow. Right now I'm unable to compile my code though: I have an app that works without the IoT functions, but cannot work out how to compile against the libraries and headers from https://github.com/aws/aws-iot-device-sdk-embedded-C (in fact, I can't event compile the libraries from the SDK).
Right now I have the following structure:
- app_dir/:
- Makefile
- main/:
- component.mk
- Kconfig.projbuild
- app.c
- certs/ (certificates)
- include/
- aws_iot_config.h
- aws_dir/ (link to the aws-iot-device-sdk-embedded-C directory)
I have the headers necessary included in the component.mk (COMPONENT_ADD_INLUDEDIRS := include aws_dir/include aws_dir/platform/linux/common aws_dir/platform/linux/mbedtls); but compilation fails because no libraries for the AWS code exist. I can't find concrete examples on how to compile this; the AWS example shadow READMEs all use custom makefiles, the same examples ported into the esp-idf repo use the component.mk format but do not appear to work.
Thanks in advance!
Matt