spikesafe-python API Overview | SerialPortConnection | connect(self, com_port, baudrate=9600, parity=serial.PARITY_NONE, stopbits=serial.STOPBITS_ONE, bytesize=serial.EIGHTBITS, terminator='\n')
connect(self, com_port, baudrate=9600, parity=serial.PARITY_NONE, stopbits=serial.STOPBITS_ONE, bytesize=serial.EIGHTBITS, terminator='\n')
Opens a TCP socket for a SpikeSafe.
com_port string
COM port of the SpikeSafe (e.g., 'COM3')
baudrate int optional
Baud rate for the serial connection (default is 9600)
parity string optional
Parity for the serial connection (default is serial.PARITY_NONE)
stopbits int optional
Stop bits for the serial connection (default is serial.STOPBITS_ONE)
bytesize int optional
Byte size for the serial connection (default is serial.EIGHTBITS)
terminator string optional
Line terminator for the serial connection (default is '\n')
IOError
On any error.