Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update main.cpp #33

Merged
merged 1 commit into from
May 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 3 additions & 22 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@
#endif
*/

// ConfigSettingsStruct ConfigSettings;
// MqttSettingsStruct MqttSettings;
// WgSettingsStruct WgSettings;
// CurrentModesStruct modes;

extern BrdConfigStruct brdConfigs[BOARD_CFG_CNT];

LEDControl ledControl;
Expand Down Expand Up @@ -175,8 +170,6 @@ void handleTmrNetworkOverseer()
}
}
}
// break;
// case WORK_MODE_NETWORK:
if (networkCfg.ethEnable)
{
if (vars.connectedEther)
Expand Down Expand Up @@ -222,9 +215,8 @@ void handleTmrNetworkOverseer()
}
}
break;

// default:
// break;
default:
break;
}
}

Expand Down Expand Up @@ -322,20 +314,9 @@ void startAP(const bool start)
LOGD("WIFI_AP_STA");
WiFi.mode(WIFI_AP_STA); // WIFI_AP_STA for possible wifi scan in wifi mode
WiFi.disconnect();
// String AP_NameString;
// getDeviceID(AP_NameString);

// char AP_NameChar[AP_NameString.length() + 1];
// memset(AP_NameChar, 0, AP_NameString.length() + 1);

// for (int i = 0; i < AP_NameString.length(); i++){
// AP_NameChar[i] = AP_NameString.charAt(i);
// }

WiFi.softAPConfig(apIP, apIP, IPAddress(255, 255, 255, 0));
// char apSsid[MAX_DEV_ID_LONG];
// getDeviceID(apSsid);
WiFi.softAP(vars.deviceId); //, WIFIPASS);

// if DNSServer is started with "*" for domain name, it will reply with
// provided IP to all DNS request
dnsServer.setErrorReplyCode(DNSReplyCode::NoError);
Expand Down
Loading