Explorar el Código

Remove error redundant check

Mike Wilkinson hace 6 años
padre
commit
2c2f0044b9
Se han modificado 1 ficheros con 0 adiciones y 2 borrados
  1. 0 2
      detect_objects.py

+ 0 - 2
detect_objects.py

@@ -34,8 +34,6 @@ def main():
                 print ("MQTT Not authorized")
             else:
                 print ("Unable to connect to MQTT: Connection refused. Error code: " + str(rc))
-        elif rc == 0:
-            print ("Connection to MQTT established.")
         # publish a message to signal that the service is running
         client.publish(MQTT_TOPIC_PREFIX+'/available', 'online', retain=True)
     client = mqtt.Client()