wifisoftAP

This commit is contained in:
pgp 2021-04-16 14:59:47 +02:00
parent 7d755f1317
commit cacf66bafc

View file

@ -7,7 +7,6 @@
#include "Wire.h"
#include "driver/pcnt.h"
#include <WiFi.h>
#include <AsyncTCP.h>
#include <ESPAsyncWebServer.h>
#include "main.h"
//#include <time.h>
@ -461,9 +460,9 @@ void rtc_init() {
void start_wifiAP() {
pinMode(LED_BUILTIN, OUTPUT);
Serial.println();
Serial.println("Configuring access point...");
//WiFi.softAP(ssid, password); // You can remove the password parameter if you want the AP to be open.
WiFi.softAP(ssid, password); // You can remove the password parameter if you want the AP to be open.
IPAddress myIP = WiFi.softAPIP();
Serial.print("AP IP address: ");
Serial.println(myIP);