19 lines
330 B
C++
19 lines
330 B
C++
|
//
|
||
|
// Created by lukas on 10.04.20.
|
||
|
//
|
||
|
|
||
|
#include "WifiManager.h"
|
||
|
|
||
|
void WifiManager::init() {
|
||
|
Serial.print("Setting soft-AP ... ");
|
||
|
boolean result = WiFi.softAP("ESPsoftAP_01", "pass-to-soft-AP");
|
||
|
if(result == true)
|
||
|
{
|
||
|
Serial.println("Ready");
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
Serial.println("Failed!");
|
||
|
}
|
||
|
}
|