Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if c1==1:
- c1 = "Select * From tag_logs where reader_id = 'Reader_001' and timestamp > '" + str(t) +"' and tag_no = '55992086130'"
- c1 = mycursor.fetchone()
- #print(c1)
- #mycursor.execute("Select * From tag_logs where reader_id = 'Reader_001' and timestamp >='" + str(t) +"' and tag_no = '55992086130'")
- cursor = mydb.cursor(buffered=True)
- if c1 == 1:
- ser.write(b'H')
- print('done')
- else:
- ser.write(b'L')
- print('deny')
- mycursor.execute(c1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement