Obtains the present value of a datapoint. The present value conforms to the type specification for the datapoint. You can read/write to one or more datapoints at a time. There are many ways to do a bulk read or bulk writes to multiple datapoints, some of which are listed below.
...
Method | URI and Fields | |||||
GET | /iap/devs/{id}/if/{block}/{block_index}/{datapoint_name}/value/{prop_name} | |||||
Gets the current value for the specified datapoint. See examples below. XIFname vs Instance Name
Path ParametersThe optional path parameters for the id, block, block_index, and datapoint_name path elements are listed on the Path Parameters page. The following list describes the optional path parameters for the prop_name path element of the Datapoint Value endpoint:
| ||||||
PUT | /iap/devs/{id}/if/{block}/{block_index}/{datapoint_name}/value/{prop_name} | |||||
Updates the default value for the specified datapoint, and will not be published until all overrides are cleared. See examples below. XIFname vs Instance Name
Path ParametersThe optional path parameters for the id, block, block_index, and datapoint_name path elements are listed on the Path Parameters page. The following list describes the optional path parameters for the prop_name path element of the Datapoint Value endpoint:
|
...
The optional path parameters for the id, block, block_index, and datapoint_name path elements are listed on the Path Parameters page.
Examples
Get all datapoints named nviValue:
...
Writing to a datapoint using device name and preset value, without specifying priority (sent at Normal (17) priority).
PUT /iap/dp/*+*name==PulseGen1/if/device/0/nviHVACMode/presets/value |
Writing to a datapoint using device name and preset value, specifying Normal (17) priority.
PUT /iap/devs/*+*name==PulseGen1/if/device/0/nviHVACMode/overrides/17/presets/value |
...
Writing to a structured datapoint using device name and preset value, without specifying priority (sent at Normal (17) priority).
PUT /iap/dp/*+*name==PulseGen1/if/device/0/nviSwitch/localization/value |
Writing to a structured datapoint using device name and preset value, specifying Normal (17) priority.
PUT /iap/devs/*+*name==PulseGen1/if/device/0/nviSwitch/overrides/17/localization/value |
...
Writing to datapoint using device name and preset value, without specifying priority (sent at Normal (17) priority).
PUT /iap/devs/*+*name==PulseGen1/if/device/0/nviTemp/value |
Writing to datapoint using device name and preset value, specifying Normal (17) priority.
PUT /iap/devs/*+*name==PulseGen1/if/device/0/nviTemp/overrides/17/value |
...
Sending Fahrenheit value: 95
PUT /iap/devs/*+*name==PulseGen1/if/device/0/nviCount/overrides/14/localization/value
Payload: 95
...
Sending Celsius value: 35
PUT /iap/devs/*+*name==PulseGen1/if/device/0/nviCount/overrides/14/localization/value
Payload: 35
...