Read and set VPP time period parameters (VPP)
<p><strong>A brief description:</strong> </p>
<p>-Read and set VPP time period parameter interface (only support MIN SPA SPH model)</p>
<p><strong>Request URL:</strong>
-<code>http(s)://test.growatt.com/v1/vppSetNew</code></p>
<p><strong>How to request:</strong>
-post</p>
<p><strong>Parameter:</strong></p>
<table>
<thead>
<tr>
<th style="text-align: left;">Parameter name</th>
<th style="text-align: left;">Is it required</th>
<th style="text-align: left;">Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">vppSn</td>
<td style="text-align: left;">Yes</td>
<td style="text-align: left;">String</td>
<td>Device SN</td>
</tr>
<tr>
<td style="text-align: left;">timePeriods</td>
<td style="text-align: left;">Yes</td>
<td style="text-align: left;">String</td>
<td>Set time period (json format: [{percentage: power, startTime: start time, endTime: end time}], time range: 0-1440, eg: [{"percentage":95,"startTime":0,"endTime ":300},{"percentage":-60,"startTime":301,"endTime":720}]</td>
</tr>
</tbody>
</table>
<p><strong>Return example</strong></p>
<pre><code>{
&quot;data&quot;: &quot;0&quot;,
&quot;error_code&quot;: 0,
&quot;error_msg&quot;: &quot;&quot;
}</code></pre>
<p><strong>Return parameter description</strong></p>
<table>
<thead>
<tr>
<th style="text-align: left;">Parameter name</th>
<th style="text-align: left;">Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">data</td>
<td style="text-align: left;">String</td>
<td>The returned result is shown in the following remarks</td>
</tr>
<tr>
<td style="text-align: left;">error_code</td>
<td style="text-align: left;">string</td>
<td>0: Normal return, 10001: Reading failed, 10012: Device does not exist, 10004: Device serial number is empty or time period is empty, 10005: Collector is offline, 10007: Set parameter to null, 10008: The setting value is out of the range or abnormal, 10009: the type of the setting parameter read does not exist, 10011: no permission</td>
</tr>
<tr>
<td style="text-align: left;">error_msg</td>
<td style="text-align: left;">string</td>
<td>Error message prompt</td>
</tr>
</tbody>
</table>
<p><strong>Remarks</strong>
-The frequency of acquisition is once every 10 seconds</p>