Help with Blynk Server

Windows 10
But i have created local server on win 8 by following this guide.

@saurabh47 were there any special security settings required for Windows 10? I don’t remember there being any for Windows 8.1.

My version is “1.15.2”

No, the hardware aren’t connected at server in the moment, the hardware is Node MCU3, but I can try ESP8266 Arduino UNO ou Mega.

#define BLYNK_DEBUG
#define BLYNK_PRINT Serial    // Comment this out to disable prints and save space
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>


char auth[] = "xxxxxxx"; 



int led_conex = D4;

void setup()
{
  Serial.begin(9600);
  Blynk.begin(auth, "xxxxxxxxx","xxxxxxxxxx",IPAddress (192,168,7,10));

  while (Blynk.connect() == false) {
  Serial.println("Conectando...");
  digitalWrite(led_conex, HIGH);

 }
  Serial.println("Programa Iniciado...");

}


bool isFirstConnect = true;
BLYNK_CONNECTED() {            //Esta função irå executar cada tempo de conexão é estabelecida Blynk
    if(isFirstConnect) {
       //Solicitar servidor Blynk para re-enviar os valores mais recentes para todos os pinos
       //Blynk.syncAll();      //atualiiza todos os pinos
       Blynk.syncVirtual(V1);  // S1 atualizar sĂł mente um pino Virtual :
       Blynk.syncVirtual(V2);  // DIMER 
       //Blynk.syncVirtual(V3);  // GROJE TEMPERATURA
       isFirstConnect = false;
   }
}


void loop()
{
  Blynk.run();
  //Serial.println("Entrou no esp8266");
}

BLYNK_WRITE(V2)  { 
 
    
     int dados = param.asInt();                           
    if(dados == 1){
     digitalWrite(D2, HIGH);
     Serial.print(" Enviando led1...");
     Serial.println( dados);
}
   else{ 
    digitalWrite,(D2, LOW);
   }
   
}

   BLYNK_WRITE(V3)  { 
 
    
     int dados = param.asInt();                           
    if(dados == 1){
     digitalWrite(D3, HIGH);
     Serial.print(" Enviando led1...");
     Serial.println( dados);
}
   else{ 
    digitalWrite,(D3, LOW);
   }
   
}

@saurabh47 I think you need to edit your video as you show /path at 7 min 50s which is incorrect and will result in Blynkers losing all there data.

This is not my video.

1 Like

@mauroviana upgrade the app to 1.15.3. Node MCU3 will be fine and the sketch looks ok when we can create an account on the server and obtain a token etc.

I will check here if we can set up users in the web browser. Think we can.

Without installing openssl there will be some certificate issues.and email doesn’t works.

I have posted a comment against the video on YouTube asking them to correct the mistake.

@mauroviana is aware of this and will set that up later but he / she has already had the system running when he / she set it up wrongly with /path. Strangely now it appears to be set up correctly it doesn’t work. Think I’m going to watch the 23 minute video and then dig out my Win 10 laptop.

Yes, you’re correct. This is all that I’ve done and redone

@costas do mean that giving path like this c: /users/username/Blynk
Will cause a errors??
I have given path like this c:/Blynk server/
Is this right?

@saurabh47 what you have is fine but the video and some Blynkers are typing:

java -jar server-0.18.3.jar -dataFolder /path

GitHub now has the warning:

NOTE : /path should be real existing path to folder where you want to store all your data.

For installing i had also use
java-jar server-0.18.2.jar-dataFolder/path
I haven’t given any /path
Is this cause any problem?

Yes if you use /path it is to a place that doesn’t exist on your computer so a tmp directory is created.

Over time the tmp directory will disappear along with all your projects.

@Dmitriy has fixed this very recently so if you try /path it will warn you that no such directory exists.

Clone your projects and start your server again with a real dataFolder.

Ok,i will do.
Thanks

Are you still around @mauroviana?

Wow, is working now. I’ve updated the server “.jar” to version “0.18.3” and enabled the Java APP in the firewall to acess the internet.
Here is the configuration of firewall before and after

Before:

After:

Costas, here is the happiness that you gave me.

Thank you @psoro, @Dmitriy, @saurabh47, and especially thanks to @Costas. I know that you efforted to much to help. I believe that is not easy “teach” someone that didn’t have the knowledge but you didn’t give up, because of this thank you so much.

For me this only the begin with Blynk Server but I’ll not give up. When we like so much of something we need to follow in front.

3 Likes

@mauroviana can you just point out how the Firewall settings are accessed in Windows 10.

Notice in the nice clear video you have backslashes in the path rather than forward slashes, is this ok for you i.e. are the users and projects appearing in the correct directory?

“Allow an application or feature through Windows Firewall.”

Control Panel \ All Control Panel Items \ Windows Firewall \ allowed Applications

1 Like

Checked on my Windows 8.1 system and it looks like it can be forward slashes OR backslashes in the real path to the dataFolder.