Read data from Dashboard


#1

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


#2

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

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

#3

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


#4

Thanks