Skip to content

Commit

Permalink
Merge pull request #6 from telit/testing/1.0.12
Browse files Browse the repository at this point in the history
Update Environment, Tampering and Rotation apps LED management
  • Loading branch information
fabiopi-tlt authored Feb 11, 2022
2 parents 7580773 + 9c25950 commit f56f6be
Show file tree
Hide file tree
Showing 83 changed files with 2,039 additions and 898 deletions.
2 changes: 1 addition & 1 deletion Samples/AZX_Docs/html/annotated.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<td id="projectlogo"><img alt="Logo" src="telit-logo.png"/></td>
<td id="projectalign" style="padding-left: 2em;">
<div id="projectname">AZX (AppZone eXtensions) documentation
&#160;<span id="projectnumber">1.0.10</span>
&#160;<span id="projectnumber">1.0.12</span>
</div>
<div id="projectbrief">A set of companion utilities that make AZ development easier</div>
</td>
Expand Down
2 changes: 1 addition & 1 deletion Samples/AZX_Docs/html/app__cfg_8h.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<td id="projectlogo"><img alt="Logo" src="telit-logo.png"/></td>
<td id="projectalign" style="padding-left: 2em;">
<div id="projectname">AZX (AppZone eXtensions) documentation
&#160;<span id="projectnumber">1.0.10</span>
&#160;<span id="projectnumber">1.0.12</span>
</div>
<div id="projectbrief">A set of companion utilities that make AZ development easier</div>
</td>
Expand Down
2 changes: 1 addition & 1 deletion Samples/AZX_Docs/html/app__cfg_8h_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<td id="projectlogo"><img alt="Logo" src="telit-logo.png"/></td>
<td id="projectalign" style="padding-left: 2em;">
<div id="projectname">AZX (AppZone eXtensions) documentation
&#160;<span id="projectnumber">1.0.10</span>
&#160;<span id="projectnumber">1.0.12</span>
</div>
<div id="projectbrief">A set of companion utilities that make AZ development easier</div>
</td>
Expand Down
2 changes: 1 addition & 1 deletion Samples/AZX_Docs/html/azx__log_8h.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<td id="projectlogo"><img alt="Logo" src="telit-logo.png"/></td>
<td id="projectalign" style="padding-left: 2em;">
<div id="projectname">AZX (AppZone eXtensions) documentation
&#160;<span id="projectnumber">1.0.10</span>
&#160;<span id="projectnumber">1.0.12</span>
</div>
<div id="projectbrief">A set of companion utilities that make AZ development easier</div>
</td>
Expand Down
2 changes: 1 addition & 1 deletion Samples/AZX_Docs/html/azx__log_8h_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<td id="projectlogo"><img alt="Logo" src="telit-logo.png"/></td>
<td id="projectalign" style="padding-left: 2em;">
<div id="projectname">AZX (AppZone eXtensions) documentation
&#160;<span id="projectnumber">1.0.10</span>
&#160;<span id="projectnumber">1.0.12</span>
</div>
<div id="projectbrief">A set of companion utilities that make AZ development easier</div>
</td>
Expand Down
2 changes: 1 addition & 1 deletion Samples/AZX_Docs/html/azx__tasks_8h.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<td id="projectlogo"><img alt="Logo" src="telit-logo.png"/></td>
<td id="projectalign" style="padding-left: 2em;">
<div id="projectname">AZX (AppZone eXtensions) documentation
&#160;<span id="projectnumber">1.0.10</span>
&#160;<span id="projectnumber">1.0.12</span>
</div>
<div id="projectbrief">A set of companion utilities that make AZ development easier</div>
</td>
Expand Down
2 changes: 1 addition & 1 deletion Samples/AZX_Docs/html/azx__tasks_8h_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<td id="projectlogo"><img alt="Logo" src="telit-logo.png"/></td>
<td id="projectalign" style="padding-left: 2em;">
<div id="projectname">AZX (AppZone eXtensions) documentation
&#160;<span id="projectnumber">1.0.10</span>
&#160;<span id="projectnumber">1.0.12</span>
</div>
<div id="projectbrief">A set of companion utilities that make AZ development easier</div>
</td>
Expand Down
2 changes: 1 addition & 1 deletion Samples/AZX_Docs/html/azx__utils_8h.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<td id="projectlogo"><img alt="Logo" src="telit-logo.png"/></td>
<td id="projectalign" style="padding-left: 2em;">
<div id="projectname">AZX (AppZone eXtensions) documentation
&#160;<span id="projectnumber">1.0.10</span>
&#160;<span id="projectnumber">1.0.12</span>
</div>
<div id="projectbrief">A set of companion utilities that make AZ development easier</div>
</td>
Expand Down
2 changes: 1 addition & 1 deletion Samples/AZX_Docs/html/azx__utils_8h_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<td id="projectlogo"><img alt="Logo" src="telit-logo.png"/></td>
<td id="projectalign" style="padding-left: 2em;">
<div id="projectname">AZX (AppZone eXtensions) documentation
&#160;<span id="projectnumber">1.0.10</span>
&#160;<span id="projectnumber">1.0.12</span>
</div>
<div id="projectbrief">A set of companion utilities that make AZ development easier</div>
</td>
Expand Down
2 changes: 1 addition & 1 deletion Samples/AZX_Docs/html/azx_tasks_example_8c-example.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<td id="projectlogo"><img alt="Logo" src="telit-logo.png"/></td>
<td id="projectalign" style="padding-left: 2em;">
<div id="projectname">AZX (AppZone eXtensions) documentation
&#160;<span id="projectnumber">1.0.10</span>
&#160;<span id="projectnumber">1.0.12</span>
</div>
<div id="projectbrief">A set of companion utilities that make AZ development easier</div>
</td>
Expand Down
2 changes: 1 addition & 1 deletion Samples/AZX_Docs/html/classes.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<td id="projectlogo"><img alt="Logo" src="telit-logo.png"/></td>
<td id="projectalign" style="padding-left: 2em;">
<div id="projectname">AZX (AppZone eXtensions) documentation
&#160;<span id="projectnumber">1.0.10</span>
&#160;<span id="projectnumber">1.0.12</span>
</div>
<div id="projectbrief">A set of companion utilities that make AZ development easier</div>
</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<td id="projectlogo"><img alt="Logo" src="telit-logo.png"/></td>
<td id="projectalign" style="padding-left: 2em;">
<div id="projectname">AZX (AppZone eXtensions) documentation
&#160;<span id="projectnumber">1.0.10</span>
&#160;<span id="projectnumber">1.0.12</span>
</div>
<div id="projectbrief">A set of companion utilities that make AZ development easier</div>
</td>
Expand Down
2 changes: 1 addition & 1 deletion Samples/AZX_Docs/html/examples.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<td id="projectlogo"><img alt="Logo" src="telit-logo.png"/></td>
<td id="projectalign" style="padding-left: 2em;">
<div id="projectname">AZX (AppZone eXtensions) documentation
&#160;<span id="projectnumber">1.0.10</span>
&#160;<span id="projectnumber">1.0.12</span>
</div>
<div id="projectbrief">A set of companion utilities that make AZ development easier</div>
</td>
Expand Down
2 changes: 1 addition & 1 deletion Samples/AZX_Docs/html/files.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<td id="projectlogo"><img alt="Logo" src="telit-logo.png"/></td>
<td id="projectalign" style="padding-left: 2em;">
<div id="projectname">AZX (AppZone eXtensions) documentation
&#160;<span id="projectnumber">1.0.10</span>
&#160;<span id="projectnumber">1.0.12</span>
</div>
<div id="projectbrief">A set of companion utilities that make AZ development easier</div>
</td>
Expand Down
2 changes: 1 addition & 1 deletion Samples/AZX_Docs/html/functions.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<td id="projectlogo"><img alt="Logo" src="telit-logo.png"/></td>
<td id="projectalign" style="padding-left: 2em;">
<div id="projectname">AZX (AppZone eXtensions) documentation
&#160;<span id="projectnumber">1.0.10</span>
&#160;<span id="projectnumber">1.0.12</span>
</div>
<div id="projectbrief">A set of companion utilities that make AZ development easier</div>
</td>
Expand Down
2 changes: 1 addition & 1 deletion Samples/AZX_Docs/html/functions_vars.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<td id="projectlogo"><img alt="Logo" src="telit-logo.png"/></td>
<td id="projectalign" style="padding-left: 2em;">
<div id="projectname">AZX (AppZone eXtensions) documentation
&#160;<span id="projectnumber">1.0.10</span>
&#160;<span id="projectnumber">1.0.12</span>
</div>
<div id="projectbrief">A set of companion utilities that make AZ development easier</div>
</td>
Expand Down
2 changes: 1 addition & 1 deletion Samples/AZX_Docs/html/globals.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<td id="projectlogo"><img alt="Logo" src="telit-logo.png"/></td>
<td id="projectalign" style="padding-left: 2em;">
<div id="projectname">AZX (AppZone eXtensions) documentation
&#160;<span id="projectnumber">1.0.10</span>
&#160;<span id="projectnumber">1.0.12</span>
</div>
<div id="projectbrief">A set of companion utilities that make AZ development easier</div>
</td>
Expand Down
2 changes: 1 addition & 1 deletion Samples/AZX_Docs/html/globals_defs.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<td id="projectlogo"><img alt="Logo" src="telit-logo.png"/></td>
<td id="projectalign" style="padding-left: 2em;">
<div id="projectname">AZX (AppZone eXtensions) documentation
&#160;<span id="projectnumber">1.0.10</span>
&#160;<span id="projectnumber">1.0.12</span>
</div>
<div id="projectbrief">A set of companion utilities that make AZ development easier</div>
</td>
Expand Down
2 changes: 1 addition & 1 deletion Samples/AZX_Docs/html/globals_enum.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<td id="projectlogo"><img alt="Logo" src="telit-logo.png"/></td>
<td id="projectalign" style="padding-left: 2em;">
<div id="projectname">AZX (AppZone eXtensions) documentation
&#160;<span id="projectnumber">1.0.10</span>
&#160;<span id="projectnumber">1.0.12</span>
</div>
<div id="projectbrief">A set of companion utilities that make AZ development easier</div>
</td>
Expand Down
2 changes: 1 addition & 1 deletion Samples/AZX_Docs/html/globals_eval.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<td id="projectlogo"><img alt="Logo" src="telit-logo.png"/></td>
<td id="projectalign" style="padding-left: 2em;">
<div id="projectname">AZX (AppZone eXtensions) documentation
&#160;<span id="projectnumber">1.0.10</span>
&#160;<span id="projectnumber">1.0.12</span>
</div>
<div id="projectbrief">A set of companion utilities that make AZ development easier</div>
</td>
Expand Down
2 changes: 1 addition & 1 deletion Samples/AZX_Docs/html/globals_func.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<td id="projectlogo"><img alt="Logo" src="telit-logo.png"/></td>
<td id="projectalign" style="padding-left: 2em;">
<div id="projectname">AZX (AppZone eXtensions) documentation
&#160;<span id="projectnumber">1.0.10</span>
&#160;<span id="projectnumber">1.0.12</span>
</div>
<div id="projectbrief">A set of companion utilities that make AZ development easier</div>
</td>
Expand Down
2 changes: 1 addition & 1 deletion Samples/AZX_Docs/html/globals_type.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<td id="projectlogo"><img alt="Logo" src="telit-logo.png"/></td>
<td id="projectalign" style="padding-left: 2em;">
<div id="projectname">AZX (AppZone eXtensions) documentation
&#160;<span id="projectnumber">1.0.10</span>
&#160;<span id="projectnumber">1.0.12</span>
</div>
<div id="projectbrief">A set of companion utilities that make AZ development easier</div>
</td>
Expand Down
2 changes: 1 addition & 1 deletion Samples/AZX_Docs/html/graph_legend.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<td id="projectlogo"><img alt="Logo" src="telit-logo.png"/></td>
<td id="projectalign" style="padding-left: 2em;">
<div id="projectname">AZX (AppZone eXtensions) documentation
&#160;<span id="projectnumber">1.0.10</span>
&#160;<span id="projectnumber">1.0.12</span>
</div>
<div id="projectbrief">A set of companion utilities that make AZ development easier</div>
</td>
Expand Down
2 changes: 1 addition & 1 deletion Samples/AZX_Docs/html/group__log_conf.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<td id="projectlogo"><img alt="Logo" src="telit-logo.png"/></td>
<td id="projectalign" style="padding-left: 2em;">
<div id="projectname">AZX (AppZone eXtensions) documentation
&#160;<span id="projectnumber">1.0.10</span>
&#160;<span id="projectnumber">1.0.12</span>
</div>
<div id="projectbrief">A set of companion utilities that make AZ development easier</div>
</td>
Expand Down
2 changes: 1 addition & 1 deletion Samples/AZX_Docs/html/group__log_usage.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<td id="projectlogo"><img alt="Logo" src="telit-logo.png"/></td>
<td id="projectalign" style="padding-left: 2em;">
<div id="projectname">AZX (AppZone eXtensions) documentation
&#160;<span id="projectnumber">1.0.10</span>
&#160;<span id="projectnumber">1.0.12</span>
</div>
<div id="projectbrief">A set of companion utilities that make AZ development easier</div>
</td>
Expand Down
2 changes: 1 addition & 1 deletion Samples/AZX_Docs/html/group__task_usage.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<td id="projectlogo"><img alt="Logo" src="telit-logo.png"/></td>
<td id="projectalign" style="padding-left: 2em;">
<div id="projectname">AZX (AppZone eXtensions) documentation
&#160;<span id="projectnumber">1.0.10</span>
&#160;<span id="projectnumber">1.0.12</span>
</div>
<div id="projectbrief">A set of companion utilities that make AZ development easier</div>
</td>
Expand Down
2 changes: 1 addition & 1 deletion Samples/AZX_Docs/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<td id="projectlogo"><img alt="Logo" src="telit-logo.png"/></td>
<td id="projectalign" style="padding-left: 2em;">
<div id="projectname">AZX (AppZone eXtensions) documentation
&#160;<span id="projectnumber">1.0.10</span>
&#160;<span id="projectnumber">1.0.12</span>
</div>
<div id="projectbrief">A set of companion utilities that make AZ development easier</div>
</td>
Expand Down
2 changes: 1 addition & 1 deletion Samples/AZX_Docs/html/modules.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<td id="projectlogo"><img alt="Logo" src="telit-logo.png"/></td>
<td id="projectalign" style="padding-left: 2em;">
<div id="projectname">AZX (AppZone eXtensions) documentation
&#160;<span id="projectnumber">1.0.10</span>
&#160;<span id="projectnumber">1.0.12</span>
</div>
<div id="projectbrief">A set of companion utilities that make AZ development easier</div>
</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<td id="projectlogo"><img alt="Logo" src="telit-logo.png"/></td>
<td id="projectalign" style="padding-left: 2em;">
<div id="projectname">AZX (AppZone eXtensions) documentation
&#160;<span id="projectnumber">1.0.10</span>
&#160;<span id="projectnumber">1.0.12</span>
</div>
<div id="projectbrief">A set of companion utilities that make AZ development easier</div>
</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<td id="projectlogo"><img alt="Logo" src="telit-logo.png"/></td>
<td id="projectalign" style="padding-left: 2em;">
<div id="projectname">AZX (AppZone eXtensions) documentation
&#160;<span id="projectnumber">1.0.10</span>
&#160;<span id="projectnumber">1.0.12</span>
</div>
<div id="projectbrief">A set of companion utilities that make AZ development easier</div>
</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,12 @@
/* header files */
/**********************************************************************************************************************/

#include "../BME680/bsec_integration.h"


#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include "../BME680/bsec_integration.h"
#include <app_cfg.h>

/**********************************************************************************************************************/
Expand Down Expand Up @@ -163,9 +164,9 @@ return_values_init bsec_iot_init(float sample_rate, float temperature_offset, bm
return_values_init ret = {BME680_OK, BSEC_OK};
//bsec_library_return_t bsec_status = BSEC_OK;

uint8_t bsec_state[BSEC_MAX_PROPERTY_BLOB_SIZE] = {0};
uint8_t bsec_state[BSEC_MAX_STATE_BLOB_SIZE] = {0};
uint8_t bsec_config[BSEC_MAX_PROPERTY_BLOB_SIZE] = {0};
uint8_t work_buffer[BSEC_MAX_PROPERTY_BLOB_SIZE] = {0};
uint8_t work_buffer[BSEC_MAX_WORKBUFFER_SIZE] = {0};
int bsec_state_len, bsec_config_len;

/* Fixed I2C configuration */
Expand Down
2 changes: 1 addition & 1 deletion Samples/BRAVO_Environment_BSEC_Demo/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ LWM2M = 1

## ---- do not touch below this line

SW_VER = 1.0.10
SW_VER = 1.0.12

CLEAN_BEFORE_BUILD = clean

Expand Down
12 changes: 5 additions & 7 deletions Samples/BRAVO_Environment_BSEC_Demo/src/M2MB_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@description
Environment Demo application. Debug prints on MAIN UART
@version
1.0.4
1.0.6
@note
Start of Appzone: Entry point
User code entry is in function M2MB_main()
Expand Down Expand Up @@ -68,8 +68,6 @@
Bosch device
*/
#define INT_GPIO_PIN_NUM 6
#define LED_INDEX_NUM 2 /* GPIO 10 */


#define BME680_W_SELF_TEST_FAILED 3

Expand Down Expand Up @@ -276,7 +274,7 @@ void M2MB_main( int argc, char **argv )
LWM2M_OBJ_REG_T obj = {ENVIRONMENT_OBJ_ID, 1, instances };
#endif
/* Open GPIO */
if( open_LED( LED_INDEX_NUM ) != 0 )
if( open_LED( DEFAULT_LED_INDEX ) != 0 )
{
AZX_LOG_ERROR( "Cannot open gpio channel.\r\n" );
return;
Expand All @@ -292,7 +290,7 @@ void M2MB_main( int argc, char **argv )
if( 0 != copy_xml_file( XML_NAME ) )
{
AZX_LOG_CRITICAL( "Failed copying file!\r\n" );

for( int i = 0; i < 10; i++ )
{
write_LED( M2MB_GPIO_HIGH_VALUE );
Expand Down Expand Up @@ -362,7 +360,7 @@ void M2MB_main( int argc, char **argv )
return;// (int)ret.bsec_status;
}
}

write_LED( M2MB_GPIO_HIGH_VALUE );
azx_sleep_ms( 100 );
write_LED( M2MB_GPIO_LOW_VALUE );
Expand All @@ -371,7 +369,7 @@ void M2MB_main( int argc, char **argv )
azx_sleep_ms( 100 );
write_LED( M2MB_GPIO_LOW_VALUE );
azx_sleep_ms( 100 );

/* Call to endless loop function which reads and processes data based on sensor settings */
/* State is saved every 10.000 samples, which means every 10.000 * 3 secs = 500 minutes */
bsec_iot_loop( azx_sleep_ms, get_timestamp_us, output_ready, state_save, 10000 );
Expand Down
2 changes: 1 addition & 1 deletion Samples/BRAVO_Environment_BSEC_Demo/src/demo_utils/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ M2MB_GPIO_VALUE_E read_gpio( void )
/*-----------------------------------------------------------------------------------------------*/
void write_LED( M2MB_GPIO_VALUE_E value )
{
m2mb_gpio_write( led_fd[0], value );
m2mb_gpio_write( led_fd[DEFAULT_LED_INDEX], value );
}

/*-----------------------------------------------------------------------------------------------*/
Expand Down
3 changes: 3 additions & 0 deletions Samples/BRAVO_Environment_BSEC_Demo/src/demo_utils/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
#define YELLOW_LED_GPIO 9
#define GREEN_LED_GPIO 10

#define DEFAULT_LED_INDEX 2 /* GPIO 10 */


/* Global typedefs ==============================================================================*/

/* Global functions =============================================================================*/
Expand Down
Loading

0 comments on commit f56f6be

Please sign in to comment.