The DrvWebPortAPI driver is used to connect to other Web Port installations to read, write, and retrieve historical data.
To use DrvWebPortAPI, an account is first created on the receiving device with API rights. That account is then used to create and renew tokens on an IO device created in the connecting Web Port.
The driver does not have its own settings, these are set uniquely for each IO device that is created.
Installation
DrvWebPortAPI is installed automatically when Web Port Server is installed because it is part of the basic installation.
IO-device
To use DrvWebPortAPI, first create an IO device as described in chapter "IO-devices" of the manual. In addition to general settings (see "general settings" in IO-devices), the following settings are available for an IO device of type DrvWebPortAPI:
| Setting: | Description: |
| Web Port URL | Url to Web Port. E.g. https://site.webport.se |
| Username | Username on account with API rights |
| Password | Password for the account above |
| Token | If a username and password are used, this does not need to be filled in. It is updated automatically after successful login |
Tags
To read and write tags via an IO device, tags must be created and linked to the same. For more information on how to create tag lists and tags, see chapter "Tags" of the manual.
The tag address is the tag name in the system that the IO device refers to. Keep in mind that the user of the receiving system must also have the right to the tags to be read and written.
Tags that are linked to an IO device of the type DrvWebPortAPI have the same data types as Web Port in general.
Information:
If necessary, history is read directly from the receiving device and is not saved in the reading device's database.