UART Port Configuration

I am using Connect Core 3G module UART port A to read the data from the UART port on the XBEE module.

In the ESP python example code of the serial ECO, there is a object declared with the parameters PORT NUMBER.

In my case, to read XBEE UART port, how to apply this code and configure the PORT number, ect?


Declare a serial port object

s = serial.Serial(
0, #port number
baudrate=9600, #baudrate
bytesize=serial.EIGHTBITS, #number of databits
parity=serial.PARITY_NONE, #enable parity checking
stopbits=serial.STOPBITS_ONE, #number of stopbits
timeout=3, #set a timeout value
xonxoff=0, #enable software flow control
rtscts=1, #enable RTS/CTS flow control