I need help in reading analog pin data from the Blynk HTTP RESTful API?

Hi I am making my own app for my project with Blynk so I need the Blynk API it works fine with Digital Pins I am getting the right value But I Tried With analog pin i used this syntax : http://blynk-cloud.com/auth_token/get/pin When I give the analog pin it shows the value as 0 always but in Blynk app it shows correctly.
Screenshot_2
:point_up_2::point_up_2:This is what i get when i give http://188.166.206.43/6OlIG-nyToVY*******************/get/A0
Please Help me to get the analog pin value. :slight_smile:

Thank you.

Send the analog value to a virtual pin, and then request its value via the API

http://blynk-cloud.com/auth_token/get/Vpin

1 Like

I’d agree that @Toro_Blanco’s solution is the simplest idea.
It is possible to do it directly, but the solution depends on the type of device you’ve selected in the app as you have to use the pin index for that board…

Pete.

1 Like

Thank you!! And I posted this in Stack Overflow And I got an answer To change A0 to D17 and it works!! and Thank you for answering.

Thank you!!!