Read energy storage machine setting parameter inte
<p><strong>A brief description:</strong> </p>
<p>-Read energy storage machine setting parameter interface</p>
<p><strong>Request URL:</strong>
-<code>http(s)://test.growatt.com/v1/readStorageParam</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;">device_sn</td>
<td style="text-align: left;">Yes</td>
<td style="text-align: left;">String</td>
<td>energy storage machine SN</td>
</tr>
<tr>
<td style="text-align: left;">paramId</td>
<td style="text-align: left;">Yes</td>
<td style="text-align: left;">String</td>
<td>parameter type Id</td>
</tr>
<tr>
<td style="text-align: left;">startAddr</td>
<td style="text-align: left;">Yes</td>
<td style="text-align: left;">int</td>
<td>start address, if there is a value, you need to pass a value, if there is no value, pass 0</td>
</tr>
<tr>
<td style="text-align: left;">endAddr</td>
<td style="text-align: left;">Yes</td>
<td style="text-align: left;">int</td>
<td>End address, if there is a value, you need to pass a value, if there is no value, pass 0</td>
</tr>
</tbody>
</table>
<p><strong>Return example</strong></p>
<pre><code>{
"data": "0",
"error_code": 0,
"error_msg": ""
}</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, 10002: Device does not exist, 10003: Device offline, 10004: Collector serial number is empty, 10005: Collector offline, 10006: Collector type does not support reading Get function, 10007: The collector version does not support the reading function, 10008: The collector connects to the server error, please restart and try again, 10009: The read setting parameter type does not exist</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></p>
<table>
<thead>
<tr>
<th style="text-align: left;">paramId: the read type passed by the request</th>
<th>parameter type description</th>
<th>data: the return result description</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">storage_cmd_on_off</td>
<td>Equipment switch machine</td>
<td>0 (shutdown), 1 (startup)</td>
</tr>
</tbody>
</table>