wifisoftAP
This commit is contained in:
parent
7d755f1317
commit
cacf66bafc
|
@ -7,7 +7,6 @@
|
||||||
#include "Wire.h"
|
#include "Wire.h"
|
||||||
#include "driver/pcnt.h"
|
#include "driver/pcnt.h"
|
||||||
#include <WiFi.h>
|
#include <WiFi.h>
|
||||||
#include <AsyncTCP.h>
|
|
||||||
#include <ESPAsyncWebServer.h>
|
#include <ESPAsyncWebServer.h>
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
//#include <time.h>
|
//#include <time.h>
|
||||||
|
@ -461,9 +460,9 @@ void rtc_init() {
|
||||||
|
|
||||||
void start_wifiAP() {
|
void start_wifiAP() {
|
||||||
pinMode(LED_BUILTIN, OUTPUT);
|
pinMode(LED_BUILTIN, OUTPUT);
|
||||||
Serial.println();
|
|
||||||
Serial.println("Configuring access point...");
|
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();
|
IPAddress myIP = WiFi.softAPIP();
|
||||||
Serial.print("AP IP address: ");
|
Serial.print("AP IP address: ");
|
||||||
Serial.println(myIP);
|
Serial.println(myIP);
|
||||||
|
|
Loading…
Reference in a new issue