kopia lustrzana https://github.com/sh123/esp32_loraprs
Bug fixing
rodzic
a76129ee59
commit
46833d732b
|
@ -20,7 +20,7 @@
|
|||
// different module then update loraprs_service.h and loraprs_service.cpp
|
||||
// search for SX1278 and replace with your module name
|
||||
|
||||
//#define USE_RADIOLIB
|
||||
#define USE_RADIOLIB
|
||||
#include "loraprs_service.h"
|
||||
|
||||
void initializeConfig(LoraPrs::Config &cfg) {
|
||||
|
|
|
@ -68,6 +68,9 @@ void Service::setupWifi(const String &wifiName, const String &wifiKey)
|
|||
|
||||
WiFi.setHostname("loraprs");
|
||||
if (config_.WifiEnableAp) {
|
||||
WiFi.softAP(wifiName.c_str(), wifiKey.c_str());
|
||||
Serial.println(WiFi.softAPIP());
|
||||
} else {
|
||||
WiFi.mode(WIFI_STA);
|
||||
WiFi.begin(wifiName.c_str(), wifiKey.c_str());
|
||||
|
||||
|
@ -82,9 +85,6 @@ void Service::setupWifi(const String &wifiName, const String &wifiKey)
|
|||
}
|
||||
Serial.println("ok");
|
||||
Serial.println(WiFi.localIP());
|
||||
} else {
|
||||
WiFi.softAP(wifiName.c_str(), wifiKey.c_str());
|
||||
Serial.println(WiFi.softAPIP());
|
||||
}
|
||||
if (config_.KissEnableTcpIp) {
|
||||
kissServer_->begin();
|
||||
|
|
Ładowanie…
Reference in New Issue