Wemos mini not connect

Hi,
For some time now I only use Wemos D1 mini pro. This will work all my projects. Now I have bought a D1 mini, because this is perfectly adequate for small projects.
Unfortunately I have problems with it.
If I use the following example code

#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

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

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "xxxxxxxxx";
char pass[] = "xxxxxxxxxxxxx";


IPAddress device_ip  (192, 168,   1,  200);
IPAddress dns_ip     (192, 168,   1,   10);
IPAddress gateway_ip (192, 168,   1,   10);
IPAddress subnet_mask(255, 255, 255,   0);

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

  // Setup WiFi network
  WiFi.config(device_ip, gateway_ip, subnet_mask);
  WiFi.begin(ssid, pass);

  // Setup Blynk
  Blynk.config(auth);
}

void loop()
{
  Blynk.run();

i got

[144] 
    ___  __          __
   / _ )/ /_ _____  / /__
  / _  / / // / _ \/  '_/
 /____/_/\_, /_//_/_/\_\
        /___/ v0.6.1 on ESP8266

[148] Connecting to blynk-cloud.com:80
[5149] Connecting to blynk-cloud.com:80
[10150] Connecting to blynk-cloud.com:80
[15151] Connecting to blynk-cloud.com:80
[20152] Connecting to blynk-cloud.com:80


if i use that code

#define BLYNK_PRINT Serial


#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

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

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "xxxxxxxxxxxxxx";
char pass[] = "xxxxxxxxxxxx";


IPAddress device_ip  (192, 168,   1,  200);
IPAddress dns_ip     (192, 168,   1,   10);
IPAddress gateway_ip (192, 168,   1,   10);
IPAddress subnet_mask(255, 255, 255,   0);

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

  // Setup WiFi network
  WiFi.config(device_ip, gateway_ip, subnet_mask);
  WiFi.begin(ssid, pass);

  // Setup Blynk
  Blynk.config(auth);
}

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

i got

⸮⸮⸮⸮⸮⸮⸮⸮⸮`⸮⸮d$⸮⸮l ⸮⸮n⸮[145]
  / _ )/ /_ _____  / /__
  / _  / / // / _ \/  '_/
 /____/_/\_, /_//_/_/\_\
        /___/ v0.6.1 on ESP8266

[148] Connecting to blynk-cloud.com:80
[5149] Connecting to blynk-cloud.com:80
[10150] Connecting to blynk-cloud.com:80
[15151] Connecting to blynk-cloud.com:80
[20152] Connecting to blynk-cloud.com:80
[25153] Connecting to blynk-cloud.com:80
[30154] Connecting to blynk-cloud.com:80

if i use this code

#define serielleAusgabe //Serieller Monitor einschalten

#define BLYNK_PRINT Serial /* Comment this out to disable prints and save space */

#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <PubSubClient.h>


char auth[] = "xxxxxxxxxxxxxxxxxx";
char ssid[] = "xxxxxxxxxxx";
char pass[] = "xxxxxxxxxxxxxx";
IPAddress arduino_ip  ( 192, 168, 1,  151);
IPAddress dns_ip      ( 192, 168, 1,  10);
IPAddress gateway_ip  ( 192, 168, 1,  10);
IPAddress subnet_mask ( 255, 255, 255, 0);

unsigned long startCheckConnection;

void setup() {
#ifdef serielleAusgabe
  Serial.begin(115000);
  delay(10);
#endif
  MyWiFi();
}
void MyWiFi() {
  int mytimeout = millis() / 1000;
  WiFi.config(arduino_ip, dns_ip, gateway_ip, subnet_mask);
 WiFi.begin(ssid, pass);
  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
    if ((millis() / 1000) > mytimeout + 2) {
      break;
    }
  }
  delay(100);
  Blynk.config(auth);
  mytimeout = millis() / 1000;
  while (Blynk.connect() == false) {
    if ((millis() / 1000) > mytimeout + 3) {
      break;
    }
  }
}

void CheckConnection() {
  if ( millis() > startCheckConnection + 60 * 1000) { //check Wifi und Blynk every minute
    if (!Blynk.connected()) {
      startCheckConnection = millis();
      MyWiFi();
    }
  }
}
void loop() {
  if (Blynk.connected()) {
    Blynk.run();
  }
  else {
    CheckConnection();
  }
}

Blynk connect without problems

   / _ )/ /_ _____  / /__
  / _  / / // / _ \/  '_/
 /____/_/\_, /_//_/_/\_\
        /___/ v0.6.1 on ESP8266

[4065] Connecting to blynk-cloud.com:80
[5098] Ready (ping: 17ms).

If i use all same code on a wemos mini pro i have no problems

i can not find the mistake or i am blind
please help me.

Uwe

IP address conflict maybe?

Try downloading and running:

to check that the static IP address that you’re allocating to the device is available.

Pete.

Hi Pete, thank you, no conflict, i check it before.
now i try to use this example sketch

/*************************************************************
  Download latest Blynk library here:
    https://github.com/blynkkk/blynk-library/releases/latest

  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
    Sketch generator:           http://examples.blynk.cc
    Blynk community:            http://community.blynk.cc
    Follow us:                  http://www.fb.com/blynkapp
                                http://twitter.com/blynk_app

  Blynk library is licensed under MIT license
  This example code is in public domain.

 *************************************************************
  This example runs directly on ESP8266 chip.

  Note: This requires ESP8266 support package:
    https://github.com/esp8266/Arduino

  Please be sure to select the right ESP8266 module
  in the Tools -> Board menu!

  Change WiFi ssid, pass, and Blynk auth token to run :)
  Feel free to apply it to any other example. It's simple!
 *************************************************************/

/* Comment this out to disable prints and save space */
#define BLYNK_PRINT Serial


#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

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

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "xxxxxxxxxxxxxxxxxx";
char pass[] = "xxxxxxxxxxxxxxxxxx";

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

  Blynk.begin(auth, ssid, pass);
}

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

now i got

orǛ⸮gb⸮d{⸮⸮oc⸮al⸮⸮ld⸮⸮$`⸮⸮’⸮[66] Connecting to xxxxxx
and not more

i am realy confused, because one sketch is runing, and all other code examples are not runing
and all sketch are runing on a D1 mini pro without problems

I guess it could be a faulty device.
I interchange D1 Minis and Pros all the time. The only practical difference between the two is the ability to connect an external antenna to the Pro. The additional memory in the Pro doesn’t make any difference.

Are you changing your board type to D1R2 & Mini when you compile the sketch?

Have you tried doing an upload using the “Flash Contents- Erase all Flash Contests” option?

Pete.

Also, try to disconnect everything from your 5V/VCC pins to see whether it makes any difference.
I used to have issues uploading sketches to my Wemos D1 mini (using USB) while having sensors drawing the power from those pins.

Hi and thank you all for help.
I Restart all, PC, Rooter, esp.
and the first test was okay.
But sometimes if i change from a mini to a pro i must restart the IDE.
But this is not a problem.
Thank you