The port used is the last port opened using the ComOpen function.
Syntax
int putnstr(
const unsigned char *string,
int len
);
Parameters
- string
-
[in] string is a pointer to the string to transfer.
- len
-
[in] Specifies the number of bytes to send.
The range of values is 0 to 32,767.
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
A character string is sent from the serial port for the specified number of bytes.
Requirements
Header file:
lib.hLibrary file:
libSTARTUPOPH5000.a
Last updated: 2020/10/07