Guest User

Untitled

a guest
Jul 22nd, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. import can
  2. import time
  3.  
  4. bus = can.interface.Bus(bustype='nican', channel='CAN0', bitrate=1000000)
  5.  
  6. recvMsg = bus.recv(timeout=None)
  7. while(recvMsg is not None):
  8. print (recvMsg.)
  9. time.sleep(2)
  10. else:
  11. print ("None")
Add Comment
Please, Sign In to add comment