示例#1
0
文件: main.py 项目: comword/SmartIR
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
示例#2
0
文件: main.py 项目: comword/SmartIR
 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'}
示例#3
0
文件: main.py 项目: comword/SmartIR
def start_IR_learn(IRID):
    m_dic={}
    m_dic['b']="b"
    m_dic["c"]=IRID
    callcpp.m_write_dict(m_dic)
    return True