kopia lustrzana https://github.com/sh123/esp32_loraprs
Improve log lines
rodzic
6dbc2fdab5
commit
3c0558d2eb
|
@ -65,13 +65,13 @@ void Service::setup(const Config &conf)
|
||||||
|
|
||||||
void Service::setupWifi(const String &wifiName, const String &wifiKey)
|
void Service::setupWifi(const String &wifiName, const String &wifiKey)
|
||||||
{
|
{
|
||||||
Serial.print("WIFI connecting to " + wifiName);
|
|
||||||
|
|
||||||
WiFi.setHostname("loraprs");
|
WiFi.setHostname("loraprs");
|
||||||
if (config_.WifiEnableAp) {
|
if (config_.WifiEnableAp) {
|
||||||
|
Serial.println("WIFI is running in AP mode " + wifiName);
|
||||||
WiFi.softAP(wifiName.c_str(), wifiKey.c_str());
|
WiFi.softAP(wifiName.c_str(), wifiKey.c_str());
|
||||||
Serial.println(WiFi.softAPIP());
|
Serial.println(WiFi.softAPIP());
|
||||||
} else {
|
} else {
|
||||||
|
Serial.print("WIFI connecting to " + wifiName);
|
||||||
WiFi.mode(WIFI_STA);
|
WiFi.mode(WIFI_STA);
|
||||||
WiFi.begin(wifiName.c_str(), wifiKey.c_str());
|
WiFi.begin(wifiName.c_str(), wifiKey.c_str());
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue