「小程序」左/右 控制
<h2>接口名称</h2>
<p>「小程序」左/右 控制</p>
<h2>接口地址</h2>
<p><code>POST htts://mesh.szalive.com/business/api/RDBed/AreaCtrl</code></p>
<h2>请求参数</h2>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数类型</th>
<th>是否必填</th>
<th>参数描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>deviceMac</td>
<td>string</td>
<td>是</td>
<td>设备MAC</td>
</tr>
<tr>
<td>operate</td>
<td>string</td>
<td>是</td>
<td>开关操作 open / close 默认为close</td>
</tr>
<tr>
<td>temp</td>
<td>string</td>
<td>是</td>
<td>设置温度</td>
</tr>
<tr>
<td>areaCtrl</td>
<td>string</td>
<td>是</td>
<td>操作区域 left / right</td>
</tr>
</tbody>
</table>
<h2>响应参数</h2>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数类型</th>
<th>参数描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>code</td>
<td>string</td>
<td>返回编号</td>
</tr>
<tr>
<td>msg</td>
<td>string</td>
<td>返回消息</td>
</tr>
</tbody>
</table>
<h2>请求示例</h2>
<pre><code>POST htts://mesh.szalive.com/business/api/bedCtrl</code></pre>
<h2>传参示例</h2>
<pre><code>{
&quot;deviceMac&quot;:&quot;123456789&quot;,
&quot;operate&quot;:&quot;open&quot;
}</code></pre>