Refrence example to showcase AWS IoT connectivity using ARM CMSIS packs for FreeRTOS modular libraries running on ARM Virtual Hardware.
Virtual Hardware: AVH Corstone 300
Processor : ARM Cortex M55
- Create an EC2 instance containing ARM Corestone 300 Virtual Hardware. Goto this page for more details on how to sign up for an EC2 instance contianing ARM AMI.
- Login to the EC2 Instance and clone the repo:
git clone [email protected]:FreeRTOS/lab-CMSIS-Packs-Demos.git
- Setup Vscode Remote development if needed: https://code.visualstudio.com/docs/remote/ssh
- Install CMSIS packs for all dependent libraries. Goto repository home folder and execute:
./install_cpacks.sh
- Configure ThingName, Endpoint and ROOT CA in file
mqtt_pub_sub/config_files/demo_config.h
:
- Root CA PEM for AWS IoT Server certificate:
democonfigROOT_CA_PEM
- Device Thing Name:
democonfigCLIENT_IDENTIFIER
- MQTT Broker Endpoint:
democonfigMQTT_BROKER_ENDPOINT
- MQTT Broker Port:
democonfigMQTT_BROKER_PORT
- Configure following credentials in file
mqtt_pub_sub/config_files/aws_clientcredential_keys.h
:
- Device private Key PEM file:
keyCLIENT_CERTIFICATE_PEM
- Device certificate PEM file:
keyCLIENT_PRIVATE_KEY_PEM
- Build MQTT Pub Sub Multithreaded demo for AVH Corestone 300:
./build.sh
- Run the demo:
./run.sh
This library is licensed under the MIT-0 License. See the LICENSE file.