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)

Macros#

#define
ESL_CORE_LOG_ENABLE 1
#define
ESL_LOG_COMPONENT_APP_ENABLE 1
#define
ESL_LOG_COMPONENT_CORE_ENABLE 1
#define
ESL_LOG_COMPONENT_DISPLAY_ENABLE 1
#define
ESL_LOG_COMPONENT_RAM_IMAGE_ENABLE 1
#define
ESL_LOG_COMPONENT_NVM_IMAGE_ENABLE 1
#define
ESL_LOG_COMPONENT_LED_ENABLE 1
#define
ESL_LOG_COMPONENT_OTS_ENABLE 1
#define
ESL_LOG_COMPONENT_SENSOR_ENABLE 1
#define
VA (...)
#define
CLI_RESPONSE (...)
#define
CLI_RESPONSE_APPEND (...)
#define
CLI_RESPONSE_HEADLESS (...)
#define
CLI_OK "OK"
#define
CLI_ERROR "ERROR"

Function Documentation#

esl_tag_cli_test_harness_init#

void esl_tag_cli_test_harness_init (void )
Parameters
N/A

Init ESL Tag CLI test harness


Definition at line 63 of file common/esl_tag_cli_test_harness/esl_tag_cli_test_harness.h

cli_esl_tag_address_get#

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

command line argument list

CLI command for reading the ESL Address value


Definition at line 69 of file common/esl_tag_cli_test_harness/esl_tag_cli_test_harness.h

cli_esl_tag_ap_key_get#

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

command line argument list

CLI command for reading the ESL Access Point Key value


Definition at line 75 of file common/esl_tag_cli_test_harness/esl_tag_cli_test_harness.h

cli_esl_tag_response_key_get#

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

command line argument list

CLI command for reading the ESL Response Key value


Definition at line 81 of file common/esl_tag_cli_test_harness/esl_tag_cli_test_harness.h

cli_esl_tag_absolute_time_get#

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

command line argument list

CLI command for reading the ESL Absolute Time value


Definition at line 87 of file common/esl_tag_cli_test_harness/esl_tag_cli_test_harness.h

cli_esl_tag_led_info_get#

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

command line argument list

CLI command for reading the ESL LED Information


Definition at line 93 of file common/esl_tag_cli_test_harness/esl_tag_cli_test_harness.h

cli_esl_tag_display_info_get#

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

command line argument list

CLI command for reading the ESL Display Information


Definition at line 99 of file common/esl_tag_cli_test_harness/esl_tag_cli_test_harness.h

cli_esl_tag_image_info_get#

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

command line argument list

CLI command for reading the ESL Image Information


Definition at line 105 of file common/esl_tag_cli_test_harness/esl_tag_cli_test_harness.h

cli_esl_tag_sensor_info_get#

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

command line argument list

CLI command for reading the ESL Sensor Information


Definition at line 111 of file common/esl_tag_cli_test_harness/esl_tag_cli_test_harness.h

cli_esl_tag_status_get#

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

command line argument list

CLI command for reading the ESL State Machine status


Definition at line 117 of file common/esl_tag_cli_test_harness/esl_tag_cli_test_harness.h

cli_esl_tag_basic_state_get#

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

command line argument list

CLI command for reading the ESL Basic State


Definition at line 123 of file common/esl_tag_cli_test_harness/esl_tag_cli_test_harness.h

cli_esl_tag_service_needed_set#

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

command line argument list

CLI command for writing the ESL Basic State Service Needed flag


Definition at line 129 of file common/esl_tag_cli_test_harness/esl_tag_cli_test_harness.h

cli_esl_tag_advertising_set#

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

command line argument list

CLI command for enabling ESL advertising


Definition at line 135 of file common/esl_tag_cli_test_harness/esl_tag_cli_test_harness.h

cli_esl_tag_image_set#

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

command line argument list

CLI command for setting static image data


Definition at line 141 of file common/esl_tag_cli_test_harness/esl_tag_cli_test_harness.h

cli_esl_tag_restart#

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

command line argument list

CLI command for restart the ESL Tag


Definition at line 147 of file common/esl_tag_cli_test_harness/esl_tag_cli_test_harness.h