Hello,
I am trying to understand how to setup a particular command in a protocol file.
The command looks like this:
Battery On “number”
And the command returns either: “OK” or ”Error: err msg”.
I think my protocol file might look like this:
Battery
{
Out “Battery On %d”;
}
And my db file would look like this:
Record (longin, “batteryOn”)
{
Field(DTYP, “stream”)
Field(INP, “myDev.proto Battery dev”)
}
How do I get the status that the command returns?
I want to do something like
Battery
{
Out “Battery On %d”;
In “%s”;
}
But I am already using an input for the battery number. So how do I do both?
Thanks In advance.
Steve Goff