Why Intel Edison cannot work with simpleTImer library?

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/

Essentualy, as indicated on https://www.arduino.cc/en/ArduinoCertified/IntelEdison the Edison requires a kit https://store.arduino.cc/product/E000051 and special version of Arduino (for access to it’s Linux kernal) that doesn’t turn it into an Arduino itself, but does give access to the Arduino’s shield library and resources.

Maybe the Edison’s Arduino emulation, or whatever it does to work Arduino like, just misses the mark for a precision timer?

If you do find an answer over there, let us know back here for the records.

PS, I edited your code so that it displays correctly here… (not that it is needed, but if it was, it is missing the important #defines and #includes)

Please use this method for any future code postings. Thank You.

It should work, if you install the one which comes with Blynk.
There was a bug in original version.

To be clear… should we(me) avoid referencing this one? Arduino Playground - HomePage

I think we will soon merge SimpleTimer into Blynk. Working on this.