POST api/Switch/PostGetwayDate

Request Information

URI Parameters

None.

Body Parameters

Gateway
NameDescriptionTypeAdditional information
GatewayID

string

None.

DevCount

integer

None.

Timestamp

integer

None.

Device

Collection of Device

None.

Request Formats

application/json, text/json

Sample:
{
  "GatewayID": "sample string 1",
  "DevCount": 2,
  "Timestamp": 3,
  "Device": [
    {
      "DevID": "sample string 1",
      "DevSwitch": 2,
      "DevVoltage": 3,
      "DevCurrent": 4.1,
      "DevPower": 5.1,
      "DevFactor": 6.1,
      "DevEnergy": 7.1,
      "DevOCP": 8,
      "DevOVP": 9,
      "DevOTP": 10
    },
    {
      "DevID": "sample string 1",
      "DevSwitch": 2,
      "DevVoltage": 3,
      "DevCurrent": 4.1,
      "DevPower": 5.1,
      "DevFactor": 6.1,
      "DevEnergy": 7.1,
      "DevOCP": 8,
      "DevOVP": 9,
      "DevOTP": 10
    }
  ]
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.