POST api/SolargoRemote/SetModBus

设备ModBus

Request Information

URI Parameters

None.

Body Parameters

ModBusModel
NameDescriptionTypeAdditional information
Sn

设备序列号

string

None.

ModBusAddress

modbus地址

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "sn": "sample string 1",
  "modBusAddress": 1
}

application/xml, text/xml

Sample:
<ModBusModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Goodwe.Ops.OpenApi.Models.Solargo">
  <ModBusAddress>1</ModBusAddress>
  <Sn>sample string 1</Sn>
</ModBusModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.