This example sketch shows how a value in the Cayenne Dashboard can be synced with the Arduino on a Virtual Pin.
The Cayenne Library is required to run this sketch. If you have not already done so you can install it from the Arduino IDE Library Manager.
- Create a Generic Digital Output Actuator widget attached to Virtual Pin 6 in the Cayenne Dashboard.
- Set the token variable to match the Arduino token from the Dashboard.
- Compile and upload the sketch.
For this example you'll need SimpleTimer library: https://github.com/jfturcot/SimpleTimer Visit this page for more information: http://playground.arduino.cc/Code/SimpleTimer