neocafe88 / final-project-assignment-neocafe88

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

Set up scheduled reporting temperature read from the device driver #8

Open neocafe88 opened 1 year ago

neocafe88 commented 1 year ago

The MQTT client is updated to read from the pseudo temperature device driver and publish it to AWS IoT. A shell script will run the MQTT client which reads the temperature once and finishes. For a regular schedule, 'cron' will be used.

DoD: The MQTT client, 'temp-sensor', publish the temperature data every minutes.

Blocker: None

neocafe88 commented 1 year ago

The MQTT client, which an CMake external package, didn't install to 'target', only to 'host'. Therefore, used *.mk as a workaround to copy the executable to /usr/bin directly. The 'crontab' didn't work well, so a crontab file was copied to /etc/cron.d/ directly, which works well. The AWS IoT Core gets the published message of random temperatures every minute, so DoD is verified.

neocafe88 commented 1 year ago

As of Sprint #2, the commits of the repos are following: