Top.Mail.Ru
Ответы

ESP32 не отображает заданые мной ssid и пароль.

В коде из Arduino IDE задаю название и пароль точки доступа(в коде у меня не точки, а цифры)
,но в подключении по WIFI к ней отображается "ESP32-Acess-Point" от устройства не завсит, ситуация одинаковая и про подключении с телефона и при подключении с компьютера.

123
 const char* ssid     = "******"; 
const char* password = "******";
 
Дополнен
12345678910111213141516171819202122232425262728293031323334353637383940414243
 #include <WiFi.h>
#include <DHT.h>

// Replace with your network credentials
const char* ssid     = "235324";
const char* password = "874325";
DHT dht(4, DHT22);
 
// Set web server port number to 80
WiFiServer server(80);
 
// Variable to store the HTTP request
String header;
 
// Auxiliar variables to store the current output state
String output26State = "off";
String output27State = "off";
 
// Assign output variables to GPIO pins
const int output26 = 26;
const int output27 = 27;
 
void setup() {
  Serial.begin(115200);
  // Initialize the output variables as outputs
  pinMode(output26, OUTPUT);
  pinMode(output27, OUTPUT);
  // Set outputs to LOW
  digitalWrite(output26, LOW);
  digitalWrite(output27, LOW);
 
  // Connect to Wi-Fi network with SSID and password
  Serial.print("Setting AP (Access Point)…");
  // Remove the password parameter, if you want the AP (Access Point) to be open
  WiFi.softAP(ssid, password);
 
  IPAddress IP = WiFi.softAPIP();
  Serial.print("AP IP address: ");
  Serial.println(IP);
  
  server.begin();
  dht.begin();
} 
Дополнен
По дате
По рейтингу
Аватар пользователя
Искусственный Интеллект

Код инициализации в студию ( ссид/пароль можешь убрать/спрятать )