[SOLVED] Particle Photon configuration with Blynk local server

Hi!,
i’ve successfully created a local server for storing data received from a Particle Photon Device on my PC, but i am having some problems with the configuration of my Photon device. It connects to the network via WiFI, and the local server is connected via Ethernet. I see on the log file from the local server the connections from the visualizaton app on my phone, but i don’t see any data value on the graph, not on the /data subdirectory of local server. The code running on the Particle Photon is the following. Any idea about the problem i’m having? could any expert which successfully connected a photon device to Blynk by using a local server share a reference code?. thanks

// This #include statement was automatically added by the Particle IDE.
#include <blynk.h>

// This #include statement was automatically added by the Particle IDE.
// El timer debe impleentarseiene que ser con esta librería
#include <SparkCorePolledTimer.h>


#define BLYNK_PRINT Serial
#define BLYNK_DEBUG

SparkCorePolledTimer myTimer(20000);  //Create a timer object and set it's timeout in milliseconds

void setup()
{
  Serial.begin(9600);
  delay(5000);

  Blynk.begin(auth, IPAddress(xx,xx,xx,xx); // ommited

  myTimer.SetCallback(sendUptime);
}

void sendUptime()
{
  Blynk.virtualWrite(V5, millis() / 1000);
}

void loop()
{
  Blynk.run(); // all the Blynk magic happens here
  myTimer.Update();
}

What version of the server are you using as “data” was removed from the latest version?

You can still access the data via HTTP API calls.

Hi, i’m using 0.21.8 … i’m having problems with the values transferring from Photon … thanks

Hi!, it is apparently solved … i had a problem with auth token. thanks

1 Like