同步策略
<h2>接口名称</h2>
<p>同步策略</p>
<h2>接口地址</h2>
<p><code>POST htts://mesh.szalive.com/business/api/RDBed/syncPolicy</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>timeType</td>
<td>string</td>
<td>是</td>
<td>时间重复类别 <br> onetime 时间点(某个日期的某个时间) <br> onetimeWeek 周期性时间点(周一到周日重复)</td>
</tr>
<tr>
<td>time</td>
<td>string</td>
<td>是</td>
<td>时间点 例: 15:00:00</td>
</tr>
<tr>
<td>*data</td>
<td>string</td>
<td>否</td>
<td>timeType为onetime时 传递 日期 2024-01-19</td>
</tr>
<tr>
<td>*week</td>
<td>string</td>
<td>否</td>
<td>timeType为onetimeWeek时 传递 周期性时间点 0x44 (16进制字符串 从最低位开始 顺序依次为 日 一 二 三 四 五 六 0x44 表示 在周二和周六时执行)</td>
</tr>
<tr>
<td>deviceType</td>
<td>string</td>
<td>是</td>
<td>策略中控制的设备类别 目前为固定值 BedControl</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/syncPolicy</code></pre>
<h2>传参示例</h2>
<pre><code>{
&quot;deviceMac&quot;:&quot;123456789&quot;,
&quot;timeType&quot;:&quot;onetime&quot;,
&quot;*data&quot;:&quot;2024-01-19&quot;,
&quot;*week&quot;:&quot;0x44&quot;,
&quot;time&quot;:&quot;15:00:00&quot;,
&quot;left_upkey&quot;: &quot;0&quot;,
&quot;right_upkey&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>