def IR_action_Send(data): m_dic={} m_dic['b']="a" m_dic["c"]=data["IRID"] m_dic["d"]=data["IRdata"] callcpp.m_write_dict(m_dic) return True
def send_14(): if request.method == 'POST': user,priv = proc_jwt(request.cookies.get('jwt')) if (priv == 'JWTError'): return 'Unauthorized', 401, {'Content-Type': 'text/html'} IRID = request.form['IRID'] m_dict={} m_dict["b"]="b" m_dict["c"]=int(IRID) callcpp.m_write_dict(m_dict) return 'Bad Request', 400, {'Content-Type': 'text/html'}
def start_IR_learn(IRID): m_dic={} m_dic['b']="b" m_dic["c"]=IRID callcpp.m_write_dict(m_dic) return True