beautypg.com

SMA SUNNY WEBBOX RPC User Manual

Page 31

background image

SMA Solar Technology AG

7  Service Procedures

User Manual

SWebBoxRPC-BA-en-14

31

A list with the device objects whose parameters are to be changed must be transferred as a
parameter. Every device object contains a list with the parameters that must be set.
Configuration of the parameters is performed synchronously. Thus, the response time depends on the
number of parameters to be set. For the next example, the response time is approx. 10 seconds.

Sample request:

RPC={
"version": "1.0",
"proc": "SetParameter",
"id": "1",
"format": "JSON",
"passwd": "a289fa4252ed5af8e3e9f9bee545c172",
"params":
{
"devices":
[
{
"key": "WR21TL06:2000101000",
"channels":
[
{
"meta": "Betriebsart",
"value": "Mpp-Betrieb"
}
]
},
{
"key": "WR21TL06:2000101001",
"channels":

PASSWORD:

The MD5 coded hash value of the password for the desired access level.

DEVICES:

An array containing objects with the device keys of the devices, and an array with
the CHANNELS whose parameter values are to be set.

DEVICE_KEY:

The corresponding device key (see Section 6.1 "Device Object", page 12).

CHANNELS:

An array containing the channel objects to be set for the respective device. A list
with the available parameter channels can be obtained by means of the command
RPC_GET_PARAMETER_CHANNELS.