BLYNK
HOME       📲 GETTING STARTED       📗 DOCS       ❓HELP CENTER       👉 SKETCH BUILDER

Blynk not work


#1

my blynk program is not see the photon online as the photon is online in front of me

#define BLYNK_PRINT Serial


#include <blynk.h>

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


void setup()
{
  // Debug console
  Serial.begin(9600);

  delay(5000); // Allow board to settle
  Blynk.begin(auth);
}

void loop()
{
  Blynk.run();
  // You can inject your own code or combine it with other sketches.
  // Check other examples on how to communicate with Blynk. Remember
  // to avoid delay() function!
}

#2

When you created this post the topic was pre-populated with this text…

Before creating the topic

  1. Search forum for similar topics
  2. Check http://docs.blynk.cc and http://help.blynk.cc/
  3. Add details :
    • Hardware model + communication type. For example: Arduino UNO with Ethernet Shield
    • Smartphone OS (iOS or Android) + version
    • Blynk server or local server
    • Blynk Library version
    • Add your sketch code. :point_up:Code should be formatted as example below.

Simply paste your code between ``` If you don’t format your code, your topic can be deleted by moderators.

```cpp

void loop()

```

It’s very difficult to help if you don’t provide the basic information that was requested.

Pete.


#3

Of course it does not work. You will need to specify ssid and password for the network you want to connect, auth key is not enough.


#4

I’m surprised the code compiles.

@asmaa, What type of connection are you using?