Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
co2ampel
ampel-firmware
Commits
d86de0ab
Commit
d86de0ab
authored
Apr 20, 2021
by
Eric Duminil
Browse files
One fewer string
parent
98010e91
Changes
2
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/wifi_util.cpp
View file @
d86de0ab
...
...
@@ -13,14 +13,14 @@ namespace config {
}
// Initialize Wi-Fi
void
WiFiConnect
(
const
String
&
hostname
)
{
void
WiFiConnect
(
const
char
*
hostname
)
{
//NOTE: WiFi Multi could allow multiple SSID and passwords.
WiFi
.
persistent
(
false
);
// Don't write user & password to Flash.
WiFi
.
mode
(
WIFI_STA
);
// Set ESP to be a WiFi-client only
#if defined(ESP8266)
WiFi
.
hostname
(
hostname
);
#elif defined(ESP32)
WiFi
.
setHostname
(
hostname
.
c_str
()
);
WiFi
.
setHostname
(
hostname
);
#endif
Serial
.
print
(
F
(
"WiFi - Connecting to "
));
...
...
ampel-firmware/wifi_util.h
View file @
d86de0ab
...
...
@@ -5,6 +5,6 @@
#include
"util.h"
#include
"led_effects.h"
void
WiFiConnect
(
const
String
&
hostname
);
void
WiFiConnect
(
const
char
*
hostname
);
#endif
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment