114
Remarks
The Msg parameter text should be passed in as a URL encoded string. To have a Nul character sent out the
serial port, pass a “%00” as part of the Msg string.
Serial_SendExpression ( Port, Expression, D
Serial_SendExpression ( Port, Expression, D
Serial_SendExpression ( Port, Expression, D
Serial_SendExpression ( Port, Expression, Data )
ata )
ata )
ata )
Sends the result of an expression to a serial port.
Syntax
HRESULT Serial_SendExpression(
[in] long Port,
[in] BSTR Expression,
[in] long MaxWaitMS,
[out, retval] long* NotSent
);
Parameters
Port
[in] Port number for the serial port. Valid values are 1 and 2.
Expression
[in] Expression to be evaluated. The result of the expression is sent out the serial port.
MaxWaitMS
[in] The number of milliseconds allowed to complete the sending of the serial data before
timing out.
NotSent
[out, retval] If an error occurred or the timeout expired, then this is the number of bytes not
sent; otherwise, this value is set to 0.
Remarks
The rules applied for
Expression
are the same as those for any expression defined for a Serial Action.
Serial_Read ( Port )
Serial_Read ( Port )
Serial_Read ( Port )
Serial_Read ( Port )
Returns the contents of the serial read buffer for the specified serial port.
Syntax
HRESULT Serial_Read(
[in] long Port,
[out, retval] BSTR* Read
);
Parameters
Port
[in] Port number for the serial port. Valid values are 1 and 2.
Read
[out, retval] URL encoded string read from the specified port.
Remarks
The string returned by this method is in URL encoded format. Once the data is read from the buffer, the
contents of the serial read buffer are cleared.
Serial_ClearReadBuffer ( Port )
Serial_ClearReadBuffer ( Port )
Serial_ClearReadBuffer ( Port )
Serial_ClearReadBuffer ( Port )
Clears the contents of the read buffer for the specified port.