This commit is contained in:
Dhruv Venkataraman 2022-10-02 23:56:47 -04:00
parent fa12be0d76
commit 3e62ca985f

View file

@ -20,8 +20,11 @@ def activate_job():
@app.route('/startfreq/<freq>')
def freq(freq):
global threadFlag
threadFlag = False
print(freq)
thread2 = Thread(target=playFunction, args=(freq,))
thread2.start()
return("200")
@app.route('/stopfreq/<freq2>')