Connecting nRF7002 to AWS IoT Core

Hi, I'm working on getting nRf7002 connected to AWS IoT Core and the process hasn't been so smooth, so I wanted to post and make sure I am on the right track (or if I'm not, get some guidance on the topic).

My development setup is as follows: nRF7002DK and 2.3.0 nRF Connect SDK/Toolchain, #include <net/aws_iot.h> library

What I've been able to do so far is connecting to a WiFi network and syncing the date time with NTP server. I am currently using the net/aws_iot library and trying to provision the aws certificates at runtime by specifying a header file with the aws private key and certificates. Unfortunately, I have been getting many build errors just by including the aws_iot.h file (haven't made any function calls yet), and it's been very confusing trying to resolve them.

It'd be great if I can get some help or suggestions from anyone with similar experience on this, any help is really appreciated! And sorry if this post seems like an easy-fix and I couldn't get it, I haven't found any examples of nrf7002 running the aws iot library on the internet yet. Thank you again for reading and helping!

Parents Reply
  • Thanks for the quick response  !

    I'm curious what you needed to include in your prj.conf file in order to get your project to compile?

    I can't even get my code to compile after adding the following lines for the AWS IoT library in the .config file:

    CONFIG_AWS_IOT=y
    CONFIG_AWS_IOT_CLIENT_ID_STATIC="silver-test"
    CONFIG_AWS_IOT_BROKER_HOST_NAME="example.endpoint.com"

    I tried following the linked ticket, configuring the additional settings as  mentioned, but wasn't successful. (prj.conf attached)

    If there is any obvious gotcha you can remember, I'd love to hear about it. Otherwise, I will keep digging away, no worries.
     
    Thanks again!
Children
Related