Пример #1
0
def set_temp():
    try:
        temp = float(request.args.get('temp'))
    except:
        return 'Fail! Invalid argument'
    try:
        chamber.set_temp(temp)
    except:
        return 'Fail! Temp set error'
    return 'Success!'