update
This commit is contained in:
@@ -5,13 +5,13 @@ import sys
|
||||
parameter = sys.argv[1:] # Exclude the script name
|
||||
#print("Parameters received:")
|
||||
port='/dev/'+parameter[0]
|
||||
|
||||
coefficient = 4
|
||||
coefficient = int(parameter[1])
|
||||
#coefficient = 4
|
||||
|
||||
def read_cairsens(port, baudrate=9600, parity=serial.PARITY_NONE, stopbits=serial.STOPBITS_ONE, databits=serial.EIGHTBITS, timeout=1):
|
||||
"""
|
||||
Lit les données de la sonde CAIRSENS via UART.
|
||||
/usr/bin/python3 /var/www/nebuleair_pro_4g/envea/read_value.py ttyAMA4
|
||||
/usr/bin/python3 /var/www/nebuleair_pro_4g/envea/read_value.py ttyAMA4 4
|
||||
|
||||
|
||||
:param port: Le port série utilisé (ex: 'COM1' ou '/dev/ttyAMA0').
|
||||
|
||||
Reference in New Issue
Block a user