I tested with this example code to test for simple timer library with Intel Edison, the apps keep showing the device is offline. But when i eliminate the everything about simple timer,the device is online and can ON the LED. But i need simple timer things to receive my data. Anyone can help?
char auth[] = "xxx";
char ssid[] = "xxx";
char pass[] = "xxx";
SimpleTimer timer;
void setup()
{
Serial.begin(9600); // See the connection status in Serial Monitor
Blynk.begin(auth, ssid, pass);
// Setup function to be called each 1000 milliseconds
timer.setInterval(1000, sendUptime);
}
// This function sends Arduino's up time every second to Virtual Pin (5).
// In the app, Widget's reading frequency should be set to PUSH. This means
// that you define how often to send data to Blynk App.
void sendUptime()
{
// You can send any value at any time.
// Please don't send more that 10 values per second.
Blynk.virtualWrite(0, millis()/1000);
}
void loop()
{
Blynk.run(); // Initiates Blynk
timer.run(); // Initiates SimpleTimer
}
SimpleTimer is not a Blynk made library, just included in the Blynk libraries for convenience and because it plays nicely with Blynk.
As both the Edison Arduino kit and SimpleTimer are part of Arduino’s bailiwick, your question may be best asked (and answered) on the Arduino forum - https://forum.arduino.cc/