Read VPP parameters
<p><strong>Brief description:</strong></p>
<ul>
<li>Read the VPP related parameters of the device according to the SN of the device. The data returned by the interface only returns the read results of the device that the secret key token has the permission to access. The device without permission will not be read and the results will not be returned.</li>
<li><code>The current interface frequency is once every 5S</code></li>
<li><code>The current interface only supports sph, spa, min, wit device types. The specific models are as follows: SPH 3000-6000TL BL, SPA 1000-3000TL BL, SPH 3000-6000TL BL US, SPH 4000-10000TL3 BH, SPA 4000-10000TL3 BH, MIN 2500-6000TL-XH US, MIN 2500-6000TL-XH, MOD-XH\MID-XH, WIT 100KTL3-H, WIS 215KTL3</code></li>
</ul>
<p><strong>Request URL:</strong></p>
<ul>
<li><code>http(s)://183.62.216.35:8081/v4/new-api/readVppParameter</code></li>
</ul>
<p><strong>Request method:</strong></p>
<ul>
<li>POST</li>
</ul>
<p><strong>Content-Type:</strong></p>
<ul>
<li>application/x-www-form-urlencoded</li>
</ul>
<p><strong>Http Header parameters and descriptions:</strong></p>
<table>
<thead>
<tr>
<th style="text-align: left;">Parameter name</th>
<th style="text-align: left;">Required</th>
<th style="text-align: left;">Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">token</td>
<td style="text-align: left;">Yes</td>
<td style="text-align: left;">String</td>
<td>Secret key token</td>
</tr>
</tbody>
</table>
<p><strong>Http body parameters and descriptions:</strong></p>
<table>
<thead>
<tr>
<th style="text-align: left;">Parameter name</th>
<th style="text-align: left;">Required</th>
<th style="text-align: left;">Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">deviceSn</td>
<td style="text-align: left;">Yes</td>
<td style="text-align: left;">string</td>
<td>Device SN, example: xxxxxxx</td>
</tr>
<tr>
<td style="text-align: left;">setType</td>
<td style="text-align: left;">Yes</td>
<td style="text-align: left;">string</td>
<td>Set parameter enumeration, example: [set_param_1]( <a href="https://www.showdoc.com.cn/p/fc84c86facd79b3692f585fbd7a6e33b">https://www.showdoc.com.cn/p/fc84c86facd79b3692f585fbd7a6e33b</a>)</td>
</tr>
<tr>
<td style="text-align: left;">deviceType</td>
<td style="text-align: left;">is</td>
<td style="text-align: left;">string</td>
<td>the parameter value set, example: sph, spa, min, wit, etc.</td>
</tr>
</tbody>
</table>
<p><strong>Call example</strong></p>
<pre><code>{
&quot;deviceSn&quot;: &quot;FDCJQ00003&quot;,
&quot;setType&quot;: &quot;set_param_34&quot;
}</code></pre>
<p><strong>Return example</strong></p>
<p>Set successfully</p>
<pre><code>{
&quot;code&quot;: 0,
&quot;data&quot;: [
{
&quot;startTime&quot;: 60,
&quot;endTime&quot;: 420,
&quot;percentage&quot;: 80
},
{
&quot;startTime&quot;: 840,
&quot;endTime&quot;: 1020,
&quot;percentage&quot;: 80
},
{
&quot;startTime&quot;: 0,
&quot;endTime&quot;: 0,
&quot;percentage&quot;: 0
}
],
&quot;message&quot;: &quot;success&quot;
}</code></pre>
<p>Device offline</p>
<pre><code>{
&quot;code&quot;: 5,
&quot;data&quot;: null,
&quot;message&quot;: &quot;DEVICE_OFFLINE&quot;
}
</code></pre>
<p>Parameter setting response timeout</p>
<pre><code>{
&quot;code&quot;: 16,
&quot;data&quot;: null,
&quot;message&quot;: &quot;PARAMETER_SETTING_RESPONSE_TIMEOUT&quot;
}</code></pre>
<p>Wrong device type</p>
<pre><code>{
&quot;code&quot;: 7,
&quot;data&quot;: null,
&quot;message&quot;: &quot;WRONG_DEVICE_TYPE&quot;
}</code></pre>