The port used is the last port opened using the ComOpen function.
Syntax
int PutString(
const char *string
);
Parameters
- string
-
[in] string is a pointer to the string to transfer.
It keeps transferring until a null terminator (ASCII code = 0,'\0') appears.
Return value
The function returns normally (OK) or an error (ERROR).
Value | Description |
---|---|
OK | Normal end |
ERROR | Abnormal end of transmission (Including the case where the communication port is not open) |
Remarks
Transmits a character buffer through the communications port that was last opened by the ComOpen function.
Requirements
Header file:
lib.hLibrary file:
libSTARTUPOPH5000.a
Last updated: 2020/10/07