Set Noah Device
<p><strong>Brief description:</strong></p>
<ul>
<li>Set the device's associated inverter and other third-party devices according to the device type noah and the device's SN. The data returned by the interface only returns the device setting results that the secret key token has permission to access. Devices without permission will not be set and no results will be returned.</li>
<li><code>The current interface frequency is once every 5S</code></li>
</ul>
<p><strong>Request URL:</strong></p>
<ul>
<li><code>http(s)://183.62.216.35:8081/v4/new-api/setDevice</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;">value</td>
<td style="text-align: left;">is</td>
<td style="text-align: left;">string</td>
<td>the parameter value set, Device Model List:<a href="https://www.showdoc.com.cn/p/469a02fee3555b1661a25ecfed1cd821">Device Model List</a>, example:{"deviceId":"","deviceModel":"HM-1500","brandsName": "Hoymiles","modelId":"0x0207","type":0}</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: noah.</td>
</tr>
</tbody>
</table>
<p><strong>Call example</strong></p>
<pre><code>{
&quot;deviceSn&quot;: &quot;FDCJQ00003&quot;,
&quot;deviceType&quot;: &quot;noah&quot;,
&quot;value&quot;: &quot;{&quot;deviceId&quot;: &quot;NYR0N9W15U&quot;, &quot;deviceModel&quot;: &quot;NEO 2000M-X2&quot;,&quot;brandsName&quot;: &quot;Growatt&quot;, &quot;modelId&quot;: &quot;0x0105&quot;, &quot;type&quot;: 0}&quot;
}</code></pre>
<p><strong>Return example</strong></p>
<p>Set successfully</p>
<pre><code>{
&quot;code&quot;: 0,
&quot;data&quot;: null,
&quot;message&quot;: &quot;PARAMETER_SETTING_SUCCESSFUL&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>