控制床垫
<h2>接口名称</h2>
<p>控制床垫</p>
<h2>接口地址</h2>
<p><code>POST htts://mesh.szalive.com/business/api/RDBed/bedCtrl</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>cost</td>
<td>string</td>
<td>是</td>
<td>付费状态:1-付费使用,0-禁止使用</td>
</tr>
<tr>
<td>left_upkey</td>
<td>string</td>
<td>否</td>
<td>左上开关</td>
</tr>
<tr>
<td>right_upkey</td>
<td>string</td>
<td>否</td>
<td>右上开关</td>
</tr>
<tr>
<td>left_downkey</td>
<td>string</td>
<td>否</td>
<td>左下开关</td>
</tr>
<tr>
<td>right_downkey</td>
<td>string</td>
<td>否</td>
<td>右下开关</td>
</tr>
<tr>
<td>left_uptemp</td>
<td>string</td>
<td>否</td>
<td>左上温度值</td>
</tr>
<tr>
<td>right_uptemp</td>
<td>string</td>
<td>否</td>
<td>右上温度值</td>
</tr>
<tr>
<td>left_downtemp</td>
<td>string</td>
<td>否</td>
<td>左下温度值</td>
</tr>
<tr>
<td>right_downtemp</td>
<td>string</td>
<td>否</td>
<td>右下温度值</td>
</tr>
<tr>
<td>left_VibFreq</td>
<td>string</td>
<td>否</td>
<td>左律动频率</td>
</tr>
<tr>
<td>left_VibInt</td>
<td>string</td>
<td>否</td>
<td>左律动强度</td>
</tr>
<tr>
<td>right_VibFreq</td>
<td>string</td>
<td>否</td>
<td>右律动频率</td>
</tr>
<tr>
<td>right_VibInt</td>
<td>string</td>
<td>否</td>
<td>右律动强度</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;left_upkey&quot;: &quot;0&quot;,
&quot;right_upkey&quot;: &quot;0&quot;,
&quot;cost&quot;: &quot;0&quot;,
&quot;left_downkey&quot;: &quot;0&quot;,
&quot;right_downkey&quot;: &quot;0&quot;,
&quot;left_uptemp&quot;: &quot;26&quot;,
&quot;right_uptemp&quot;: &quot;26&quot;,
&quot;left_downtemp&quot;: &quot;26&quot;,
&quot;right_downtemp&quot;: &quot;26&quot;,
&quot;left_VibFreq&quot;: &quot;1&quot;,
&quot;left_VibInt&quot;: &quot;1&quot;,
&quot;right_VibFreq&quot;: &quot;1&quot;,
&quot;right_VibInt&quot;: &quot;1&quot;
}</code></pre>