
native RS232_Close(rs232);
Closes the RS232 interface
Parameter
Explanation
rs232
Number of the RS232 interface; is always 0 for the myDatalogEASY IoTmini
Note:
You can also use the predefined constant "RS232_ITF1" for this
parameter.
Explanation
Return value
l
OK, if successful
l
ERROR_FEATURE_LOCKED, if the specified interface on the device is
not released
l
< OK, if another error occurs (see "Return codes for general purposes" in
chapter "Constants" on page 84).
native RS232_Write(rs232, const data{}, len);
Sends data via the specified RS232 interface
Parameter
Explanation
rs232
Number of the RS232 interface; is always 0 on the myDatalogEASY IoTmini
Note:
You can also use the predefined constant "RS232_ITF1" for this
parameter.
data
Array that contains the data to be sent
len
Number of bytes to be sent
Explanation
Return value
l
Number of processed bytes, if successful
Note:
If the number of processed bytes deviates from the passed number
of bytes to be sent, the RS232_Write() function must be called again.
However, now only the data that could not be processed in the previous
function call needs to be passed here.
l
ERROR_FEATURE_LOCKED, if the specified interface on the device is
not released
l
< OK, if another error occurs (see "Return codes for general purposes" in
chapter "Constants" on page 84).
108
Rev. 01