Read Analog inputs from API on local server

I setup a local server and can read digital pin state and control the digital pins fine. But I am trying to read from A0 or A1 and all I ever get is: Requested pin not exists in app. I am using A0 and A1 and the values display fine in the Blynk app on my phone. However from the API I have yet to see any Analog data.

curl --include ‘http://hostname.com:8080/myapikey/pin/A0’
HTTP/1.1 400 Bad Request
Connection: keep-alive
Content-Type: text/plain
Content-Length: 32

Requested pin not exists in app.

Version: server-0.15.3.jar

Any Ideas?

Thanks…

Hello. Do you have widget with A0 selected?

Hi mikrologic,

you should try something like that:
curl --include ‘http://hostname.com:8080/myapikey/pin/A15’

Else you may retrieve the proper pin number if you edit your project file in your data folder on your blynk server.

BR.

Ive just had this same problem - I got the pin number by looking at the widget from http://hostname.com:8080/myapikey/project
(or if using the blynk server http://blynk-cloud.com/myapikey/project)

My ADC0 was actually A17