Re: serial communication error for loop

2018-03-13 Thread MRAB
On 2018-03-14 00:23, Dhileepan Kumar wrote: #!/usr/bin/python import serial import MySQLdb while True: #establish connection to MySQL. You'll have to change this for your database. dbConn = MySQLdb.connect("localhost","root","1234","ifet") or die ("could not connect to database")

Re: serial communication error for loop

2018-03-13 Thread Chris Angelico
On Wed, Mar 14, 2018 at 11:23 AM, Dhileepan Kumar wrote: > > #!/usr/bin/python > > import serial > import MySQLdb > while True: > #establish connection to MySQL. You'll have to change this for your database. > dbConn = MySQLdb.connect("localhost","root","1234","ifet") or die > ("could not

serial communication error for loop

2018-03-13 Thread Dhileepan Kumar
#!/usr/bin/python import serial import MySQLdb while True: #establish connection to MySQL. You'll have to change this for your database. dbConn = MySQLdb.connect("localhost","root","1234","ifet") or die ("could not connect to database") #open a cursor to the database cu