Python

 

Module include

There is a way to use the pySerial module for serial communication in Python.

Reference: [pySerial module] (Since this is an external link, the link may change without notice)
    https://pythonhosted.org/pyserial/

The pySerial module must be downloaded separately and installed on the target PC.
See the pySerial module website for details.

 

Importing the pySerial module

To use the functions of the pySerial module in Python, import the serial class in your source code.

For details, refer to the source code of the sample program.

Program example :

import serial