Photon not online in Blynk app via local blynk server

Hello everybody,

I have trouble running a photon (with following code) connected to a Blynk local server. The problem is that my Blynk app is reporting that the photon is not online. I get no errors just that the photon is not online. I am certain about the authorisation code, the ip for the blynk local server and also about the blynk local server itself. The firmware of the photon is 0.7.0. The LED-indication on the photon shows no problem.

Anybody an idea what is wrong?

Thanks in advance,
Bart

#include <blynk.h>
#define BLYNK_PRINT Serial
char auth[] = "0338485e588e47a0ae39868db60124c7";

Servo motor;

void setup()
{
    Serial.begin(9600);
    delay(5000); // Allow board to settle
    Blynk.begin(auth, IPAddress(192,168,0,101), 8080);
    motor.attach(D0);
}

void loop()
{
    Blynk.run();
}

BLYNK_WRITE(V1)
{
  motor.writeMicroseconds(param.asInt()); 
}

I think this would be a question for the Blynk community since the library should handle potential connection loss and reconnects and hence they’d know best whether there should be an auto-reconnect or if you need to do something in your code.
I’m pretty sure that’s a platform independent question.

1 Like

Thanks for the response. I posted it on the Blynk forum.

Greetings,
Bart