Sorry to use the issues to ask questions, but I couldn't find a group/forum for this library.
I have started using the library it looks great!
I did manage to get confused about 2 things:
How can I check how many arguments are present in a call ? In a scenario where a variable number of arguments is passed, how can I could the arguments ? (I've noticed that trying to read an argument that isn't there there returns 0.0 for readFloatArg() for example. Is there something I might have missed that already handles argument count ?)
I haven't managed to properly use the SendAndReceiveBinaryArguments function. All I could get the sketch to react to was sending a 0; as binary (0x00 0x3B). I don't think I understood how the binary communication works. Hints ? :)
Pleased to hear that you like the library! We very are interested in hearing what you are using it for.
Under .NET this is possible: ReceivedCommand.Arguments.Count will give you the number of parameters. On your arduino, this is not know: to preserve precious memory, there is no read-ahead, and parameters are directly read from the stream. If you want, you can easily send the number of parameters as the first parameter.
You mean the sample is not working? Are you sure speed & port are correct, 16/32 bit is set correctly, etc?
Hi,
Sorry to use the issues to ask questions, but I couldn't find a group/forum for this library. I have started using the library it looks great!
I did manage to get confused about 2 things:
Thank you, George