5、获取设备状态
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://10.27.204.40:8006/api/wz_get_macstatus</code>
<strong>返回示列:</strong>
<pre><code>{
"data": //存储结果的json字符串 需要再次jsondecode处理
"{
\\status\\:1, //0为关机 1为开机
\\function\\:1,//0=关闭,1=衣物90,2=衣物120,3=衣物180,4=杯具消毒,5=自动
\\auto_time_hour\\:90,//小时(几点)
\\auto_time_min\\:12,//(分钟)
\\door_status\\:0,//门状态 0=关闭,1=打开
\\remind_time\\:0, //工作剩余时间
\\temperature\\:90,//温度值 0~150度
\\error\\:27 //错误码 0=无故障,1=传感器短路,2=传感器开路,3=门打开
}",
"code": 1,
"msg": "获取成功"
}</code></pre>
<p><strong>data字段需要再次jsondecode转码:</strong> </p></li>
</ul>