neocafe88 / final-project-assignment-neocafe88

Repo for hosting Project for ECEN 5713 Final project
0 stars 0 forks source link

MQTT client for AWS IoT in Host #1

Open neocafe88 opened 1 year ago

neocafe88 commented 1 year ago

Create a MQTT client in the development environment (Ubuntu Linux) in C++

DoD: Build is successful, able to see the data in AWS IoT

Blockers: AWS SDK installation, modern C++ language, AWS IoT Concept

neocafe88 commented 1 year ago

To build a MQTT client which talks to AWS IoT Core, it's required to install AWS IoT Device SDK in the system. There are different versions for each language: C++, Python, Javascript, etc. There is a separate version available in a smaller size for Embedded C. The document of the SDK for embedded C is not that user-friendly so I chose AWS IoT Device SDK for CPP V2. It needed many days to catch up the modern C++ language and to get familiar with AWS IoT Core and Aws::Crt packages.

neocafe88 commented 1 year ago

Further notes: In the api usage, 'clientId' and 'topic' can be freely created but needs to be allowed in the policy in the cloud account (not in the local policy file)

neocafe88 commented 1 year ago

DoD is verified as the MQTT client was connected to AWS IoT Core successfully and see the published messages in the cloud.