server test

This commit is contained in:
Bernd Reuther 2021-03-04 16:54:02 +01:00
parent f2e9ce00ef
commit e1b7352d91

View File

@ -85,13 +85,11 @@ def action(changePin, action):
def motor_test(motor, position):
if motor == "drehen":
m1.stop()
time.sleep(1)
m1.start()
time.sleep(1)
m1.gehe_zu(int(position))
return 'Drehen: ' + str(m1.pos)
#if __name__ == "__main__":
# kamera_server.run(host='0.0.0.0')
application = kamera_server
if __name__ == "__main__":
kamera_server.run(host='0.0.0.0')