![]() Serialport.dsrdtr = False #disable hardware (DSR/DTR) flow control Serialport.rtscts = False #disable hardware (RTS/CTS) flow control ![]() Serialport.xonxoff = False #disable software flow control Serialport.timeout = 0 #non-blocking mode (return immediately on read) Serialport.stopbits = serial.STOPBITS_ONE #number of stop bits Serialport.parity = serial.PARITY_NONE #set parity check: no parity tesize = serial.EIGHTBITS #number of bits per bytes ![]() #timeout = x: set timeout to x seconds (float allowed) #timeout = 0: non-blocking mode (return immediately on read) #Possible values for the parameter timeout: RedOrange = convertstring(str(row*10))Ĭommandstring = "C" "F" FarRed "R" Red "O" RedOrange "G" Green "B" Blue "U" UV1 "V" UV2 "E" # "\r\n" It will letĬursor.execute("SELECT Far_Red,Red,Red_Orange,Green,Blue,UV_410,UV_395 FROM ledlampvalues Order by ID desc limit 1")įarRed = convertstring(str(row*10)) #x10 pour conserver l'architecture du protocole Db = nnect(host="localhost", user="root", passwd="xxxxxxx", db="logsensorsvalues") #Password containing special char (utf8)
0 Comments
Leave a Reply. |