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
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

Macro Definition Documentation#

ESL_CORE_LOG_ENABLE#

#define ESL_CORE_LOG_ENABLE
Value:
1

Definition at line 45 of file common/esl_tag_cli_test_harness/config/esl_log_config.h

ESL_LOG_COMPONENT_APP_ENABLE#

#define ESL_LOG_COMPONENT_APP_ENABLE
Value:
1

Definition at line 50 of file common/esl_tag_cli_test_harness/config/esl_log_config.h

ESL_LOG_COMPONENT_CORE_ENABLE#

#define ESL_LOG_COMPONENT_CORE_ENABLE
Value:
1

Definition at line 55 of file common/esl_tag_cli_test_harness/config/esl_log_config.h

ESL_LOG_COMPONENT_DISPLAY_ENABLE#

#define ESL_LOG_COMPONENT_DISPLAY_ENABLE
Value:
1

Definition at line 60 of file common/esl_tag_cli_test_harness/config/esl_log_config.h

ESL_LOG_COMPONENT_RAM_IMAGE_ENABLE#

#define ESL_LOG_COMPONENT_RAM_IMAGE_ENABLE
Value:
1

Definition at line 65 of file common/esl_tag_cli_test_harness/config/esl_log_config.h

ESL_LOG_COMPONENT_NVM_IMAGE_ENABLE#

#define ESL_LOG_COMPONENT_NVM_IMAGE_ENABLE
Value:
1

Definition at line 70 of file common/esl_tag_cli_test_harness/config/esl_log_config.h

ESL_LOG_COMPONENT_LED_ENABLE#

#define ESL_LOG_COMPONENT_LED_ENABLE
Value:
1

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

ESL_LOG_COMPONENT_OTS_ENABLE#

#define ESL_LOG_COMPONENT_OTS_ENABLE
Value:
1

Definition at line 80 of file common/esl_tag_cli_test_harness/config/esl_log_config.h

ESL_LOG_COMPONENT_SENSOR_ENABLE#

#define ESL_LOG_COMPONENT_SENSOR_ENABLE
Value:
1

Definition at line 85 of file common/esl_tag_cli_test_harness/config/esl_log_config.h

VA#

#define VA
Value:
(...)

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

CLI_RESPONSE#

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

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

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__)

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

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__)

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

CLI_OK#

#define CLI_OK
Value:
"OK"

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

CLI_ERROR#

#define CLI_ERROR
Value:
"ERROR"

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