In the beginning, I looked a lot at the topics and did not find a solution to my problem
I started connecting to the local server with command prompt C:\Users\abdal\Desktop\blynk>java -jar blynk.jar -dataFolder C:\Users\abdal\Desktop\blynk\
Blynk Server 0.41.12 successfully started. All server output is stored in folder 'C:\Users\abdal\Desktop\blynk\.\logs' file. Your Admin url is https://192.168.1.112:9443/admin Your Admin login email is admin@blynk.cc Your Admin password is admin
I entered this link https://192.168.1.112:9443/admin and it opened without problems
Then from the phone I registered with a new account and changed to custom server and put this IP 192.168.1.112
port 9443
After logging in, the device appeared on Local Server
Then I took Auth And confirmed its authenticity And put it in the code
#define BLYNK_PRINT Serial
#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>
#include <DHT.h>
char auth[] = "295FE16smljNCU5aMt0kIWGVBIYvmMvy";
char ssid[] = "MAX";
char pass[] = "YallA11295467";
#define DHTPIN 13
#define DHTTYPE DHT11 // DHT 11
DHT dht(DHTPIN, DHTTYPE);
BlynkTimer timer;
void sendSensor()
{
float h = dht.readHumidity();
float t = dht.readTemperature();
if (isnan(h) || isnan(t)) {
Serial.println("Failed to read from DHT sensor!");
return;
}
Blynk.virtualWrite(V5, h);
Blynk.virtualWrite(V6, t);
}
void setup()
{
Serial.begin(9600);
//Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 80);
Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,112), 8080);
dht.begin();
timer.setInterval(1000L, sendSensor);
}
void loop()
{
Blynk.run();
timer.run();
}
But the problem is that the device is already connected to the Wi-Fi network but writes in the app Wasn't online yet
using : server-0.41.12.jar / arduino 1.8.12
So what is the problem