Unable to connecting to API

Avatar

thembelani
2022-12-22 21:39

Hi, 

I'm trying to connect to the API based on the docs, https://sdg.pnpscada.com/docs.jsp?memh=8608000655473816996#commands-readmeterprofile.


The URL:
https://adam.pnpscada.com:441/readMeterProfile?LOGIN=subdomain.name&PWD=password&eid=11212&startdate=2022-11-22&enddate=2022-12-22


I'm getting this error.

`
<xml>
<result>ERROR:ResultSet not positioned properly, perhaps you need to call next.</result>
</xml>
`

Could you please assist?


Tags: api
Avatar

sdg.matiaan
2022-12-23 13:47
Last Edited 2022-12-23 13:49

the eid of 1413 that you have specified is not for a meter. You need to specify the eid of the meter you want profile for.

Select the meter and hover your mouse over the serial to get the eid.

Avatar

thembelani
2022-12-23 21:07

Thanks for the prompt response.

The eid i used, in this case, was 11212. I got it by hovering over the meter. 

I have tried again with another meter and I still get the same response.

Here is the URL i used.

https://adam.pnpscada.com:441/readMeterProfile?LOGIN=subdomain.name&PWD=password&eid=119521&startdate=2022-11-22&enddate=2022-12-22



Thank you.

Avatar

sdg.matiaan
2022-12-25 06:48
Last Edited 2022-12-25 22:24

your URL does seem to work for me.
Perhaps the password you are using contains some sort of special characters that need to be escaped in URL?



Avatar

thembelani
2022-12-27 17:48

Thank you. That was the issue. I was not formatting the username correctly.

Please log in to post a comment