This function transmits a character through the serial communications port that was last opened by the ComOpen function.

Syntax

int PutCom(
  unsigned char data
);

Parameters

data
[in] data is the character that is to be transmitted.

Return value

The function returns normally (OK) or an error (ERROR).
ValueDescription
OK Normal end
ERROR Timeout for transition to transmittable state
(Including the case where the communication port is not open)

Remarks

If you leave the communication port open more than necessary
Please note that it will consume the battery excessively.

Requirements

Header file:
lib.h
Library file:
libSTARTUPOPH5000.a

Last updated: 2020/10/07