User manual
Automation Protocol Extended Status Commands
Miranda Technologies Ltd Page 137
CMD Param_1 Param_2
XB %01x: GPI No. %01x: 0 = Off, 1 = On
Example:
void GPIOutputStatus(int GPI, bool Status)
{
remote_send(“XB%01x %01x”, GPI, Status);
}
Serial Baud Rate XC
This command sets the baud rate for the specified serial port number.
CMD Param_1 Param_2
XC %1x: Port No. %d: Baud rate
Example:
void SetSerialBaudRate(int Port, int Baudrate)
{
remote_send(“XC%1x %d”, Port, Baudrate);
}
The command XC alternatively responds with the current baud rate for the
serial port specified.
CMD Param_1
XC %1x: Port No.
Example:
void GetSerialBaudRate(int Port)
{
remote_send(“XC%1x”, Port);
}
Format Field Description
%c%c Cmd XC
%x Port Serial Port No.
%d Baud rate Current baud rate