Replies: 1 comment
-
I think I got it. My mistake. This is my custom CLI handler void cli_prov_serial (void *aContext, uint8_t aArgsLength, char *aArgs[]) {
} Cheers, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have implemented three custom commands and it seems working. For one command I need to pass a parameter like a hex string. I have tried passing them like 'void cli_prov_serial (void *aContext, uint8_t aArgsLength, char *aArgs[])'. I can see the aArgsLength is correct, but only first char of my hex string is correctly passed.
Now I have looked at how cli.cpp has done this. It passes arguments as an array of type Arg, which is defined in cli.hpp. I tried #including this but I have to specify the full path name of this file, which is not good if I upgrade the SDK at some point. So I got stuck at this point.
How can I pass a hex string to a custom CLI command?
Cheers,
Kaushalya
Beta Was this translation helpful? Give feedback.
All reactions