Developer World
Spresense SDK Library v3.3.0-375c679
lte_log.h File Reference

LTE library for LTE firmware log. More...

#include <sys/types.h>
#include <nuttx/wireless/lte/lte.h>

Go to the source code of this file.

Macros

#define EXTERN   extern "C"
 

Functions

Functions
int lte_log_collect (FAR char *output_fname, size_t len)
 
int lte_log_getlist (size_t listsize, size_t fnamelen, char list[listsize][fnamelen])
 

Detailed Description

LTE library for LTE firmware log.

API call type

Sync API
lte_log_collect
lte_log_getlist
lte_log_open
lte_log_close
lte_log_read
lte_log_remove
lte_log_lseek

Function Documentation

◆ lte_log_collect()

int lte_log_collect ( FAR char *  output_fname,
size_t  len 
)

Collect LTE modem FW logs and store them in the LTE modem storage.

Parameters
[out]output_fnameBuffer to store the name of the saved file. If the saved file name is not needed, set it to NULL.
[in]lenBuffer length for output_fname. Sets LTE_LOG_NAME_LEN, except when the saved file name is not needed.
Returns
Return value : Returns 0 on success. On error, a negative value is returned. The following values may be returned in error cases.
  • ENOBUFS
  • ENOTSUP

◆ lte_log_getlist()

int lte_log_getlist ( size_t  listsize,
size_t  fnamelen,
char  list[listsize][fnamelen] 
)

Get a list of logs stored in the LTE modem storage.

Parameters
[in]listsizeNumber of arrays in which to store file names. The maximum number of arrays is LTE_LOG_LIST_SIZE.
[in]fnamelenBuffer length for list. Sets LTE_LOG_NAME_LEN.
[in]listBuffer to store the list of saved file names.
Returns
Return value : Returns the number of stored file names on success. On error, a negative value is returned. The following values may be returned in error cases.
  • EINVAL
  • ENOBUFS
  • ENOTSUP