General Makefile calls each API source without any specific target,
this commit fixes the CAN Makefile to build without errors.
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
Added two examples about how to configure and set a CAN
interface to establish a communication receiving and
sending frames.
Signed-off-by: fgilmar <francisco.gilmartinez@digi.com>
Added two examples about how to configure and set a CAN
interface to establish a communication receiving and
sending frames.
Signed-off-by: fgilmar <francisco.gilmartinez@digi.com>
RNG and encryption operations won't work unless the cryptochip is configured
for TLS operations. Print a warning if the chip hasn't been configured yet.
https://jira.digi.com/browse/DEL-5710
Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
This commit:
* adds the name of the connector in the readme files
* uses the official platform names
* minor changes for consistency between readme files
Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
'adc_sampling_cb_data' struct is a local variable of the 'main' function.
Sometimes, the ADC callback accesses to it once the main function has exited
(when it is out of scope), causing a segmentation fault.
To solve this issue, adc_sampling_cb_data' struct is now a global variable.
Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
We need to reduce the optimization level in order to be able to
perform a debugging of the applications, without this there is
an strange behaviour while debugging.
Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
The first time that the example is run there was an error
related with an invalid value for the duty cycle.
With this fix we set the duty cycle to 0 when we close the example.
Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
This example takes periodic samples using a thread and
calculate the rms value and the mean value of the samples
taken.
https://jira.digi.com/browse/DEL-4889
Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
The makefile only builds the example applications based on 'libdigiapix'
library, so just rename the makefile accordingly.
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
The application allows to switch on and off the configured LED.
This commit adds the following configuration parameter:
* 'user_led ': GPIO number of the LED to be remotely controlled.
If -1, no LED is controlled, but the application simulates its status.
https://jira.digi.com/browse/DEL-4149
Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
The application also monitors the CPU load along with the temperature.
It also uploads the Thing Shadow when the load variation is bigger than 10% (per
param in the config file).
This commit adds the following configuration parameter:
* 'cpu_load_variation': Minimum absolute value of the difference between last
reported CPU load and the current value to report again.
https://jira.digi.com/browse/DEL-4149
Signed-off-by: Tatiana Leon <tatiana.leon@digi.com>
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>
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>