Reconnect Issues

ISSUE - Running setup below works rock solid but I have noticed that if my IOS phone is powered off and i turn my phone back on and then check my Blynk app it will show the Blynk program still running and connected to my Arduino ok for about 1 second then it will stop and I get the Arduino Uno is offline message. I am able to replicate this every time.

Any suggestions?

Setup = IOS 8.3
Uno+Sainsmart W5100 Ethernet
Sketch = Std “PushData” Example Sketch/**************************************************************

  • Blynk is a platform with iOS and Android apps to control
  • Arduino, Raspberry Pi and the likes over the Internet.
  • You can easily build graphic interfaces for all your
  • projects by simply dragging and dropping widgets.
  • Downloads, docs, tutorials: http://www.blynk.cc
  • Blynk community: http://community.blynk.cc
  • Social groups: http://www.fb.com/blynkapp
  •                           http://twitter.com/blynk_app
    
  • Blynk library is licensed under MIT license
  • This example code is in public domain.

**************************************************************/

#define BLYNK_PRINT Serial // Comment this out to disable prints and save space
#include <SPI.h>
#include <Ethernet.h>
#include <BlynkSimpleEthernet.h>
#include <SimpleTimer.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = “3eab67d592ea4b7faa0c52d1375e1203”;

SimpleTimer timer;

void setup()
{
Serial.begin(9600); // See the connection status in Serial Monitor
Blynk.begin(auth);

// 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(5, millis()/1000);
}

void loop()
{
Blynk.run(); // Initiates Blynk
timer.run(); // Initiates SimpleTimer
}

@Smashim

Could you please confirm that your Arduino is online for sure?

Dmitry,

Yes it was. I am trying to duplicate the problem again so let me first see if I can further isolate some more detail so I can be of more help to you!

Smashim

Unable to duplicate so I say we write this one off and move on!