Open neocafe88 opened 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.
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