Skip to content

Commit

Permalink
merged head
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmohr committed May 24, 2018
2 parents 24703b3 + 7509dff commit c2e0356
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
Measures the time how long it takes to charge a capacity, averages 10 measurement
and publishes the result via mqtt.
Measures the time how long it takes to charge a capacity, averages 10 measurement
and publishes the result via mqtt.
"""

import RPi.GPIO as GPIO
Expand Down Expand Up @@ -56,7 +56,7 @@ def charge_time_ms(pin):

def mqtt_publish(mqtt_server, topic, value):
"""
Publishes the new measured value via mqtt.
Publishes the new measured value via mqtt.
"""
mqttc = mqtt.Client()
mqttc.connect(__MQTT_SERVER)
Expand Down Expand Up @@ -85,7 +85,7 @@ def mqtt_publish(mqtt_server, topic, value):
help='Defines the mqtt topic.')

args = parser.parse_args()

if args.pin is not None:
__PIN = args.pin

Expand Down

0 comments on commit c2e0356

Please sign in to comment.