nRF5 SDK v17.1.0
Data Structures | Functions
Tile Diagnostics module

Tile Diagnostics module. More...

Data Structures

struct  tile_tdg_module
 

Functions

int tile_tdg_register (struct tile_tdg_module *module)
 
int tdg_add_data (void *data, uint8_t length)
 Add diagnostic data. More...
 
int tdg_finish (void)
 Finish adding diagnostic data. More...
 

Detailed Description

Tile Diagnostics module.

This module is used by Tile Lib to send diagnostic information to the Tile data collection system. Consult with Tile for the proper format for diagnostic data, if it is to be automatically parsed by the Tile backend.

Function Documentation

int tdg_add_data ( void *  data,
uint8_t  length 
)

Add diagnostic data.

Should be called during the call to get_diagnostics. This function can be called multiple times, for each piece of diagnostic info that is to be added.

Parameters
[in]dataData to add to diagnostics.
[in]lengthLength of data to add.
int tdg_finish ( void  )

Finish adding diagnostic data.

Should be called during the call to get_diagnostics, after all data has been added.

int tile_tdg_register ( struct tile_tdg_module module)

Register the TDG module.


Documentation feedback | Developer Zone | Subscribe | Updated