Owning Palette: IrDA Functions
Requires: Base Development System (Windows)
Reads the number of bytes specified in bytes to read from the IrDA connection specified in the connection ID.
|mode indicates the behavior of the read operation.
|connection ID is an IrDA connection refnum that uniquely identifies the IrDA connection.|
|bytes to read indicates how many bytes the function reads from the IrDA device. Use one of the following techniques to handle messages that might vary in size:
|timeout ms specifies the time, in milliseconds, that the function waits for bytes from an IrDA device on a wireless network before the function completes and returns an error. The default value is 25,000 ms. A value of –1 indicates to wait indefinitely.|
|error in describes error conditions that occur before this node runs. This input provides standard error in functionality.|
|connection ID out is the IrDA connection refnum that uniquely identifies the IrDA connection. Use this value to refer to this connection in subsequent IrDA function calls. connection ID out always has the same value as connection ID.|
|data out is the data the function reads from an IrDA device returned as a string or as a flattened string. Use the Unflatten From String function to convert the data to the correct data type. You also can use the Unflatten From XML function to convert data from XML format.|
|error out contains error information. This output provides standard error out functionality.|
Refer to the following VIs for examples of using the IrDA Read function: