i am creating a http type protocol where i am getting data through Api's. So when i am adding element using device ip I need to get data with respective ip device, in other word can use this domain as a variable in my api calls
Hi Chirangee,
You have different options to get data from the device using HTTP api calls.
If there is no additional URL that you use to get data and only poll data with the IP, remove the URL attribute from the HTTP request definition as described here.
If the URL you use to get data is fixed, you can simply add the URL in the url attribute like the example below. Then DataMiner will automatically add the device IP in front of the URL when polling is initiated.
If you want to include/manage the device IP in URL yourself:
1) add a read parameter of type ip or pollingip
2) in a QAction, get the value of this parameter to get the ip. Then compose the full URL with the IP and set the URL to another parameter (PID 400 in the example below) which you can use it in the HTTP session like below.