What is the proper way to scan a string via the rpc interface?
<code_snippet> str string = {NULL,0};
if (rpc->scan(c, "S", &string) < 1) return; </code_snippet>
If I use the above code and I pass a string that is made out of digits, I get the following error: "error: 400 - error at parameter 0: expected string type but record doesn't match type"
I would like to have the argument interpreted as a string no matter what I pass as an argument via rpc: sercmd> some_cmd abcd the above will work ok sercmd> some_cmd 1234 the above will give the 400 error
Regards, Ovidiu Sas