WillemVH commited on
Commit
fe4cd68
·
verified ·
1 Parent(s): 49f251b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -30,6 +30,13 @@ def apirequests():
30
  #then we can get the id from the database
31
  servolist = get_servo_list(id)
32
  one, two, three = servolist.split(',')
33
- return "servo 1: " + one + "servo two: " + two + "servo three:" + three
 
 
 
 
 
 
 
34
  if __name__ == '__main__':
35
  app.run(host='0.0.0.0', port=5000, debug=False)
 
30
  #then we can get the id from the database
31
  servolist = get_servo_list(id)
32
  one, two, three = servolist.split(',')
33
+ #split it up ^
34
+ if servo = 1
35
+ return one
36
+ if servo = 2
37
+ return two
38
+ if servo = 3
39
+ return three
40
+ # ^ identify the servo
41
  if __name__ == '__main__':
42
  app.run(host='0.0.0.0', port=5000, debug=False)