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
87e8b8e3
Commit
87e8b8e3
authored
Feb 07, 2022
by
Eric Duminil
Browse files
Repairing wifi_util
MQTT is now broken
parent
0ca1cb47
Pipeline
#5734
canceled with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/wifi_util.cpp
View file @
87e8b8e3
#include
"wifi_util.h"
#include
"config.h"
#include
"util.h"
// -> time.h
#include
"led_effects.h"
#include
"sensor_console.h"
namespace
config
{
// WiFi config. See 'config.h' if you want to modify those values.
const
char
*
wifi_ssid
=
WIFI_SSID
;
...
...
@@ -8,7 +13,7 @@ namespace config {
#ifdef WIFI_TIMEOUT
const
uint8_t
wifi_timeout
=
WIFI_TIMEOUT
;
// [s] Will try to connect during wifi_timeout seconds before failing.
#else
const
uint8_t
wifi_timeout
=
60
;
// [s] Will try to connect during wifi_timeout seconds before failing.
const
uint8_t
wifi_timeout
=
60
;
// [s] Will try to connect during wifi_timeout seconds before failing.
#endif
}
...
...
ampel-firmware/wifi_util.h
View file @
87e8b8e3
#ifndef WIFI_UTIL_H_INCLUDED
#define WIFI_UTIL_H_INCLUDED
#include
"config.h"
#include
"util.h"
#include
"led_effects.h"
namespace
wifi
{
extern
char
local_ip
[];
void
connect
(
const
char
*
hostname
);
...
...
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