kann mir bitte jemand helfen, bei der Zeile 68 ist wird einen Fehler gemeldet bzw invalid syntax..
Code
while True:
count = pulse2liter(trigger_pin)
countall = count + countall
#count = count + 1
if count > 0:
print('Literverbrauch:',countall)
success = 0
while !success: // zeile 68
try:
client.publish('testclient', str(count), qos=1)
success = True
sleep(0.5)
except Exception as e:
print(e) # rote LED an
#rote LED aus
#sleep(0.1)
sleep(0.1)
Alles anzeigen