This commit is contained in:
2021-02-08 14:34:29 +01:00
parent d7afc9af62
commit ad17551832
6 changed files with 250 additions and 2 deletions

View File

@ -108,7 +108,11 @@ static bool setLocationCmd(uint8_t argc, char **args) {
sizeof(((t_configBlock*)0)->location));
}
static bool setSinkServerCmd(uint8_t argc, char **args) {
return setStringParameterCmd(argc, args,
offsetof(t_configBlock, sinkServer),
sizeof(((t_configBlock*)0)->sinkServer));
}
const static cmd_t SET_COMMANDS[] = {
@ -132,6 +136,10 @@ const static cmd_t SET_COMMANDS[] = {
.help = \
"location ............................. Location of this device\n\r"
},
{ .name = "sinkserver", .cmdFunc = setSinkServerCmd,
.help = \
"sinkserver ........................... Name of the sink server\n\r"
},
{ .name = "END_OF_CMDS", .help = "",.cmdFunc = NULL }
};