DmitrMakeev commited on
Commit
a1a3ecc
1 Parent(s): fe96440

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -89,6 +89,12 @@ def set_pH_value():
89
  globs.eep_set = 1
90
  return "pH value set successfully"
91
 
 
 
 
 
 
 
92
 
93
 
94
  @app.route("/api", methods=['GET'])
 
89
  globs.eep_set = 1
90
  return "pH value set successfully"
91
 
92
+ @app.route('/EC_set')
93
+ def set_pH_value():
94
+ ph_value = request.args.get('value')
95
+ globs.ec_set = ec_value
96
+ globs.eep_set = 2
97
+ return "EC value set successfully"
98
 
99
 
100
  @app.route("/api", methods=['GET'])