BUG: Wifi configuration
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"socket_server_port": 80,
|
"socket_server_port": 8080,
|
||||||
"socket_server_address": "*",
|
"socket_server_address": "*",
|
||||||
"debug": true,
|
"debug": true,
|
||||||
"max_upload_size": 1048576,
|
"max_upload_size": 1048576,
|
||||||
|
|||||||
@@ -194,6 +194,9 @@ const WifiConfigDialog = withStyles(styles, { withTheme: true })(
|
|||||||
|
|
||||||
wifiConfigSettings.enable = this.state.enabled;
|
wifiConfigSettings.enable = this.state.enabled;
|
||||||
wifiConfigSettings.hotspotName = this.state.name;
|
wifiConfigSettings.hotspotName = this.state.name;
|
||||||
|
wifiConfigSettings.countryCode = this.state.countryCode;
|
||||||
|
wifiConfigSettings.channel = this.state.channel;
|
||||||
|
|
||||||
if (this.state.newPassword.length === 0 || !this.state.enabled)
|
if (this.state.newPassword.length === 0 || !this.state.enabled)
|
||||||
{
|
{
|
||||||
wifiConfigSettings.hasPassword = false;
|
wifiConfigSettings.hasPassword = false;
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ export default class WifiConfigSettings {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
clone() : WifiConfigSettings {
|
clone() : WifiConfigSettings {
|
||||||
return this.deserialize(this);
|
return new WifiConfigSettings().deserialize(this);
|
||||||
}
|
}
|
||||||
valid: boolean = true;
|
valid: boolean = true;
|
||||||
wifiWarningGiven: boolean = false;
|
wifiWarningGiven: boolean = false;
|
||||||
|
|||||||
@@ -356,7 +356,7 @@ private:
|
|||||||
governorMonitorThread.SetGovernor(governor);
|
governorMonitorThread.SetGovernor(governor);
|
||||||
result = 0;
|
result = 0;
|
||||||
}
|
}
|
||||||
else if (command == "WifiConfigSettings ")
|
else if (command == "WifiConfigSettings")
|
||||||
{
|
{
|
||||||
std::stringstream ss(args);
|
std::stringstream ss(args);
|
||||||
WifiConfigSettings settings;
|
WifiConfigSettings settings;
|
||||||
|
|||||||
Reference in New Issue
Block a user