Read data from Dashboard

Hello,
How can I read values(both analog and digital) that I am writing/sending from dashboard to ESP8266 with Arduino.
Thanks

welcome to cayenne community @shubham061.sharma.
add a slider or button widget and add this code:

  CAYENNE_IN(1)
{
  int x = getValue.asInt();
 }
2 Likes

There are lots of code samples throughout this forum. Get a cup of tea and peruse all the projects here :slight_smile:

Thanks

1 Like