Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ESP32 as Acespoint
#4
Hello, you have to replace the WiFi with WiFiMulti

For ESP8266 declare  the following lines on the top of the code


#include <ESP8266WiFiMulti.h>
ESP8266WiFiMulti WiFiMulti;


For ESP32 add the lines:

#include <WiFiMulti.h>
WiFiMulti WiFiMulti;

then replace the connection function with this

Code:
//===================================================== connectToWiFiNetwork
void connectToWiFiNetwork(){
    WiFiMulti.addAP("SSID", "passpasspass");
    while(WiFiMulti.run() != WL_CONNECTED) {
        delay(100);
    }
   Serial.println("\nWiFi connected");

}


You can see some examples on the WebSockets library
Reply


Messages In This Thread
ESP32 as Acespoint - by cvbtec - 12-27-2022, 02:17 PM
RE: ESP32 as Acespoint - by iliaslamprou - 12-28-2022, 01:01 AM
RE: ESP32 as Acespoint - by cvbtec - 12-28-2022, 05:57 PM
RE: ESP32 as Acespoint - by iliaslamprou - 12-28-2022, 10:37 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)