UpdateConfig

This method adds or updates the tag configuration contained in the payload. The method does not delete any existing mappings.

Method Name: UpdateConfig

Payload: Here is an example of setting/updating 2 tags into the current configuration.

{
    "version": "1.0.0",
    "configurations": [
        {
            "id": "ModbusSig1",
            "input": {
                "moduleId": "ModbusModule",
                "sourceId": "Test1",
                "source": "adr=1;unit=1;datatype=uint32;blockid=1",
                "endpoint": "Slave01",
                "measurementType": "Analog",
                "interpolation": "Linear",
                "samplingRate": "00:00:05"
            },
            "output": {
                "aggregation": "None",
                "aggregationInterval": null,
                "compression": null,
                "minMeasurements": null
            },
            "accessType": "ReadOnly",
            "routes": [
                {
                    "type": "ColdPath",
                    "routingInterval": null,
                    "uploadHistoryWindow": null
                }
            ]
        },
        {
            "id": "ModbusSig2",
            "input": {
                "moduleId": "ModbusModule",
                "sourceId": "Test2",
                "source": "adr=2;unit=1;datatype=uint32;blockid=1",
                "endpoint": "Slave01",
                "measurementType": "Analog",
                "interpolation": "Linear",
                "samplingRate": "00:00:05"
            },
            "output": {
                "aggregation": "None",
                "aggregationInterval": null,
                "compression": null,
                "minMeasurements": null
            },
            "accessType": "ReadOnly",
            "routes": [
                {
                    "type": "ColdPath",
                    "routingInterval": null,
                    "uploadHistoryWindow": null
                }
            ]
        }
    ]
}```

Last updated

Was this helpful?