beautypg.com

Clickserialportreceive – Wavetronix Click 500 (programmable controller) (CLK-500) - Developer Guide User Manual

Page 180

background image

APPENDIX

• CLICK 500 DEVELOPER GUIDE

179

ClickSerialPortReceive

Retrieves data received on a virtual port.

˽

LIRBARY – click500serial.lib

˽

SYNTAX –

int ClickSerialPortReceive( int virtualPortId, int maxBytes,
char* dataArray)

˽

PARAMETER1 – The virtual port buffer from which the data is retrieved.

˽

PARAMETER2 – The maximum number of byte to try and retrieve.

˽

PARAMETER3 – The location where the data to be retrieved is stored.

˽

RETURN VALUE – The number of bytes actually retrieved.

˽

SEE ALSO – ClickSerialPortTransmit