POST v2/api/Router/modbus/modBusDataLog

Request Information

URI Parameters

None.

Body Parameters

Collection of ModBusDataViewModel
NameDescriptionTypeAdditional information
DeviceName

string

None.

Register

integer

None.

Value

string

None.

TimeStamp

date

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "DeviceName": "sample string 1",
    "Register": 2,
    "Value": "sample string 3",
    "TimeStamp": "2025-01-10T00:07:57.3403334-03:00"
  },
  {
    "DeviceName": "sample string 1",
    "Register": 2,
    "Value": "sample string 3",
    "TimeStamp": "2025-01-10T00:07:57.3403334-03:00"
  }
]

application/xml, text/xml

Sample:
<ArrayOfModBusDataViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Neocontrol.API.Controllers">
  <ModBusDataViewModel>
    <DeviceName>sample string 1</DeviceName>
    <Register>2</Register>
    <TimeStamp>2025-01-10T00:07:57.3403334-03:00</TimeStamp>
    <Value>sample string 3</Value>
  </ModBusDataViewModel>
  <ModBusDataViewModel>
    <DeviceName>sample string 1</DeviceName>
    <Register>2</Register>
    <TimeStamp>2025-01-10T00:07:57.3403334-03:00</TimeStamp>
    <Value>sample string 3</Value>
  </ModBusDataViewModel>
</ArrayOfModBusDataViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.