Device & model you are using (Ex: Pi 2 Model B or Arduino Uno with W5100 ethernet shield)
Arduino UNO + W5100
What dashboard are you using? (Web, iOS, Android)
Please describe the bug / issue as detailed as possible. Attaching the code and any relevant screenshots would be very helpful!
New project, 3 widgets (generic actuators), simple sketch, works for a while the first time, then goes offline, restart does not solve this, actuators do not work. Realise simular problems are allready described,
Another simular project (on my own account) just keep on working. so question how to check if you are offline because your banned due to creating too much traffic; not expecting this sketch is doing this but it is possible I am loosing connection because I am not returning fast enough back to the loop but on the other hand I tested this already a couple of times without any problems.
PS I am working on a new account for a new cayennne member; so i want to start with a working environment
Sketch looks like:
Cayenne Ethernet Example
This sketch connects to the Cayenne server using an Arduino Ethernet Shield W5100
and runs the main communication loop.
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.
- Set the token variable to match the Arduino token from the Dashboard.
- Compile and upload this sketch.
For Cayenne Dashboard widgets using digital or analog pins this sketch will automatically
send data on those pins to the Cayenne server. If the widgets use Virtual Pins, data
should be sent to those pins using virtualWrites. Examples for sending and receiving
Virtual Pin data are under the Basics folder.
- RemoteSwitch library v2.3.0 (20121229) made by Randy Simons http://randysimons.nl/
- License: GPLv3. See license.txt
//#define CAYENNE_DEBUG // Uncomment to show debug messages
#define CAYENNE_PRINT Serial // Comment this out to disable prints and save space
// Cayenne authentication token. This should be obtained from the Cayenne Dashboard.
char token = “xxxxxx”;
KaKuTransmitter kaKuTransmitter(7); //data-pin 433 on pin 7
CAYENNE_IN(V1) // KaKu B 1
CAYENNE_IN(V2) // KaKu B 2
CAYENNE_IN(V3) // KaKu B 3