CLI Test Harness for ESL Tag application#

CLI Test Harness is an optional component for the ESL Tag example application, providing a set of commands to control and observe the ESL Tag internal behavior directly via a serial terminal. This is a No-Code component, however only meaningful in ESL context.

Functions#

void
cli_esl_tag_address_get(sl_cli_command_arg_t *arguments)
void
cli_esl_tag_ap_key_get(sl_cli_command_arg_t *arguments)
void
cli_esl_tag_response_key_get(sl_cli_command_arg_t *arguments)
void
cli_esl_tag_absolute_time_get(sl_cli_command_arg_t *arguments)
void
cli_esl_tag_led_info_get(sl_cli_command_arg_t *arguments)
void
cli_esl_tag_display_info_get(sl_cli_command_arg_t *arguments)
void
cli_esl_tag_image_info_get(sl_cli_command_arg_t *arguments)
void
cli_esl_tag_sensor_info_get(sl_cli_command_arg_t *arguments)
void
cli_esl_tag_status_get(sl_cli_command_arg_t *arguments)
void
cli_esl_tag_basic_state_get(sl_cli_command_arg_t *arguments)
void
cli_esl_tag_service_needed_set(sl_cli_command_arg_t *arguments)
void
cli_esl_tag_advertising_set(sl_cli_command_arg_t *arguments)
void
cli_esl_tag_image_set(sl_cli_command_arg_t *arguments)
void
cli_esl_tag_restart(sl_cli_command_arg_t *arguments)

Function Documentation#

esl_tag_cli_test_harness_init#

void esl_tag_cli_test_harness_init (void )
Parameters
TypeDirectionArgument NameDescription
voidN/A

Init ESL Tag CLI test harness


cli_esl_tag_address_get#

void cli_esl_tag_address_get (sl_cli_command_arg_t * arguments)
Parameters
TypeDirectionArgument NameDescription
sl_cli_command_arg_t *[in]arguments

command line argument list

CLI command for reading the ESL Address value


cli_esl_tag_ap_key_get#

void cli_esl_tag_ap_key_get (sl_cli_command_arg_t * arguments)
Parameters
TypeDirectionArgument NameDescription
sl_cli_command_arg_t *[in]arguments

command line argument list

CLI command for reading the ESL Access Point Key value


cli_esl_tag_response_key_get#

void cli_esl_tag_response_key_get (sl_cli_command_arg_t * arguments)
Parameters
TypeDirectionArgument NameDescription
sl_cli_command_arg_t *[in]arguments

command line argument list

CLI command for reading the ESL Response Key value


cli_esl_tag_absolute_time_get#

void cli_esl_tag_absolute_time_get (sl_cli_command_arg_t * arguments)
Parameters
TypeDirectionArgument NameDescription
sl_cli_command_arg_t *[in]arguments

command line argument list

CLI command for reading the ESL Absolute Time value


cli_esl_tag_led_info_get#

void cli_esl_tag_led_info_get (sl_cli_command_arg_t * arguments)
Parameters
TypeDirectionArgument NameDescription
sl_cli_command_arg_t *[in]arguments

command line argument list

CLI command for reading the ESL LED Information


cli_esl_tag_display_info_get#

void cli_esl_tag_display_info_get (sl_cli_command_arg_t * arguments)
Parameters
TypeDirectionArgument NameDescription
sl_cli_command_arg_t *[in]arguments

command line argument list

CLI command for reading the ESL Display Information


cli_esl_tag_image_info_get#

void cli_esl_tag_image_info_get (sl_cli_command_arg_t * arguments)
Parameters
TypeDirectionArgument NameDescription
sl_cli_command_arg_t *[in]arguments

command line argument list

CLI command for reading the ESL Image Information


cli_esl_tag_sensor_info_get#

void cli_esl_tag_sensor_info_get (sl_cli_command_arg_t * arguments)
Parameters
TypeDirectionArgument NameDescription
sl_cli_command_arg_t *[in]arguments

command line argument list

CLI command for reading the ESL Sensor Information


cli_esl_tag_status_get#

void cli_esl_tag_status_get (sl_cli_command_arg_t * arguments)
Parameters
TypeDirectionArgument NameDescription
sl_cli_command_arg_t *[in]arguments

command line argument list

CLI command for reading the ESL State Machine status


cli_esl_tag_basic_state_get#

void cli_esl_tag_basic_state_get (sl_cli_command_arg_t * arguments)
Parameters
TypeDirectionArgument NameDescription
sl_cli_command_arg_t *[in]arguments

command line argument list

CLI command for reading the ESL Basic State


cli_esl_tag_service_needed_set#

void cli_esl_tag_service_needed_set (sl_cli_command_arg_t * arguments)
Parameters
TypeDirectionArgument NameDescription
sl_cli_command_arg_t *[in]arguments

command line argument list

CLI command for writing the ESL Basic State Service Needed flag


cli_esl_tag_advertising_set#

void cli_esl_tag_advertising_set (sl_cli_command_arg_t * arguments)
Parameters
TypeDirectionArgument NameDescription
sl_cli_command_arg_t *[in]arguments

command line argument list

CLI command for enabling ESL advertising


cli_esl_tag_image_set#

void cli_esl_tag_image_set (sl_cli_command_arg_t * arguments)
Parameters
TypeDirectionArgument NameDescription
sl_cli_command_arg_t *[in]arguments

command line argument list

CLI command for setting static image data


cli_esl_tag_restart#

void cli_esl_tag_restart (sl_cli_command_arg_t * arguments)
Parameters
TypeDirectionArgument NameDescription
sl_cli_command_arg_t *[in]arguments

command line argument list

CLI command for restart the ESL Tag


Macro Definition Documentation#

ESL_CORE_LOG_ENABLE#

#define ESL_CORE_LOG_ENABLE
Value:
1

ESL_LOG_COMPONENT_APP_ENABLE#

#define ESL_LOG_COMPONENT_APP_ENABLE
Value:
1

ESL_LOG_COMPONENT_CORE_ENABLE#

#define ESL_LOG_COMPONENT_CORE_ENABLE
Value:
1

ESL_LOG_COMPONENT_DISPLAY_ENABLE#

#define ESL_LOG_COMPONENT_DISPLAY_ENABLE
Value:
1

ESL_LOG_COMPONENT_RAM_IMAGE_ENABLE#

#define ESL_LOG_COMPONENT_RAM_IMAGE_ENABLE
Value:
1

ESL_LOG_COMPONENT_NVM_IMAGE_ENABLE#

#define ESL_LOG_COMPONENT_NVM_IMAGE_ENABLE
Value:
1

ESL_LOG_COMPONENT_LED_ENABLE#

#define ESL_LOG_COMPONENT_LED_ENABLE
Value:
1

ESL_LOG_COMPONENT_OTS_ENABLE#

#define ESL_LOG_COMPONENT_OTS_ENABLE
Value:
1

ESL_LOG_COMPONENT_SENSOR_ENABLE#

#define ESL_LOG_COMPONENT_SENSOR_ENABLE
Value:
1

VA#

#define VA
Value:
(...)

CLI_RESPONSE#

#define CLI_RESPONSE
Value:
sli_bt_esl_logger(ESL_LOG_COMPONENT_CLI, \
ESL_LOG_LEVEL_INFO, \
__VA_ARGS__)

CLI_RESPONSE_APPEND#

#define CLI_RESPONSE_APPEND
Value:
sli_bt_esl_logger((ESL_LOG_COMPONENT_CLI \
| ESL_LOG_FLAG_APPEND), \
ESL_LOG_LEVEL_INFO, \
__VA_ARGS__)

CLI_RESPONSE_HEADLESS#

#define CLI_RESPONSE_HEADLESS
Value:
sli_bt_esl_logger((ESL_LOG_COMPONENT_CLI \
| ESL_LOG_FLAG_NOHEADER), \
ESL_LOG_LEVEL_INFO, \
__VA_ARGS__)

CLI_OK#

#define CLI_OK
Value:
"OK"

CLI_ERROR#

#define CLI_ERROR
Value:
"ERROR"