Commit Graph

5 Commits

Author SHA1 Message Date
Tatiana Leon 1fff418887 aws iot sample: add support to connect to AWS IoT and report CPU temperature
The application connects to AWS IoT and monitors the CPU temperature.
It uploads the Thing Shadow every minute (per param in config file) or when the
temperature variation is bigger than 1C (per param in the config file).

This commit adds the following configuration parameters:
  * 'shadow_report_rate': Frequency at which the device reports its shadow to
    the cloud (in seconds).
  * 'temperature_variation': Minimum absolute value of the difference between
    last reported temperature and the current value to report again.

https://jira.digi.com/browse/DEL-4149

Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-05-18 15:08:09 +02:00
Tatiana Leon dc2599fd28 aws iot sample: add a config file option to get settings for the sample
The application uses 'libconfuse' to read the settings from the provided
configuration file with the option '-c'. By default, the application looks for
the '/etc/awsiotsdk.conf' file.

https://jira.digi.com/browse/DEL-4149

Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-05-17 18:11:36 +02:00
Tatiana Leon cbbe31f11e aws iot sample: add program options for application usage and daemonization
https://jira.digi.com/browse/DEL-4149

Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-05-17 18:11:27 +02:00
Tatiana Leon 089b93cb11 aws iot sample: application with basic signal handling
https://jira.digi.com/browse/DEL-4149

Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-05-12 10:27:10 +02:00
Tatiana Leon 9efd798622 Initial commit
Basic readme file for the repository.

Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
2017-05-08 10:32:49 +02:00