Trident IoT SDK
Loading...
Searching...
No Matches
tr_command_s Struct Reference

Structure used for each CLI command table entry. More...

#include <tr_cli_command_table.h>

Data Fields

const char * command
 Command string that triggers this handler.
int(* handler )(int argc, char *argv[])
 Function pointer to the command handler.
const char * help
 Help text describing the command.

Detailed Description

Structure used for each CLI command table entry.

Field Documentation

◆ command

const char* tr_command_s::command

Command string that triggers this handler.

◆ handler

int(* tr_command_s::handler) (int argc, char *argv[])

Function pointer to the command handler.

Parameters
[in]argcNumber of arguments.
[in]argvArray of argument strings.
Returns
Command execution result.

◆ help

const char* tr_command_s::help

Help text describing the command.


The documentation for this struct was generated from the following file: