Breadcrumbs

CDRFLEx.flange_serial_read

Features

This is a function for receive serial data in the robot controller.

Parameter

Parameter Name

Data Type

Default Value

Description

fTimeout

float

-1

Timeout(sec : -1 means infinite)

Return

Value

Description

Struct.FLANGE_SER_RXD_INFO

Refer to the Definition of Struct

Example

Python
Drfl.flange_serial_open(115200);
Drfl.flange_serial_write(8, "test1234");
LPFLANGE_SER_RXD_INFO temp = Drfl.flange_serial_read(4.5);
cout << "serial read : " << temp->_cRxd << endl;
cout << "serial cnt : " << (int)temp->_iSize << endl;
Drfl.flange_serial_close();