diff --git a/raspberry/python/uart2mqtt.py b/raspberry/python/uart2mqtt.py index 77bf8ae..5f28adf 100644 --- a/raspberry/python/uart2mqtt.py +++ b/raspberry/python/uart2mqtt.py @@ -76,7 +76,7 @@ with serial.Serial(uart_name, uart_baud_rate, timeout=2) as uart: # compact JSON as bytes. Lets decode and load everything ! try: data = json.loads(line.decode('utf8')) - reception_date = datetime.utcnow().strftime("%Y/%m/%d %H:%M:%S ") + reception_date = datetime.utcnow().strftime("%Y/%m/%d %H:%M:%S") #print("{} :\n{}".format(reception_date, data)) # Formatting data for sending to MQTT broker (one source at a time)