User Tools

Site Tools


raspberrypi:modbus

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
raspberrypi:modbus [2020/10/06 17:49] – aistisraspberrypi:modbus [2020/10/06 18:38] (current) – aistis
Line 32: Line 32:
  
   dmesg | grep tty   dmesg | grep tty
 +  
 +  
 +<code python>
 +from pyudev import Context, Device
 +context = Context()
 +device = Devices.from_device_file(context, '/dev/sda')
 +print(device)
 +</code>  
  
raspberrypi/modbus.1601995763.txt.gz · Last modified: by aistis