Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
3 years ago
by
Eric Duminil
Browse files
Options
Download
Email Patches
Plain Diff
One fewer string
parent
98010e91
master
develop
experimental/example_for_iotwebconf
senseair_s8
v0.3.0
v0.2.3
v0.2.2
v0.2.1
v0.2.0
v0.1.0
archive/refactor/src_structure
archive/experimental/wifimanager
archive/experimental/simple
archive/experimental/save_lora_session
archive/experimental/save_config
archive/experimental/ota
archive/experimental/binary_clock
archive/experimental/autoconnect
archive/dev/debugcalib
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ampel-firmware/wifi_util.cpp
+2
-2
ampel-firmware/wifi_util.cpp
ampel-firmware/wifi_util.h
+1
-1
ampel-firmware/wifi_util.h
with
3 additions
and
3 deletions
+3
-3
ampel-firmware/wifi_util.cpp
+
2
-
2
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 "
));
...
...
This diff is collapsed.
Click to expand it.
ampel-firmware/wifi_util.h
+
1
-
1
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
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets