WillemVH commited on
Commit
4f26df3
·
verified ·
1 Parent(s): c7bf148

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -8,9 +8,12 @@ def main():
8
  @app.route('/input')
9
  def apirequests():
10
  # =?id,servo
 
11
  full_query = request.query_string.decode('utf-8')
12
  if full_query.startswith('='):
13
  data = full_query[1:]
14
- return
 
 
15
  if __name__ == '__main__':
16
  app.run(host='0.0.0.0', port=5000, debug=False)
 
8
  @app.route('/input')
9
  def apirequests():
10
  # =?id,servo
11
+ # this code filters the id out V
12
  full_query = request.query_string.decode('utf-8')
13
  if full_query.startswith('='):
14
  data = full_query[1:]
15
+ #ends here and saves in data
16
+ id, servo = data.split(',')
17
+ return id + "adn " + servo
18
  if __name__ == '__main__':
19
  app.run(host='0.0.0.0', port=5000, debug=False)