Commit 87e8b8e3 authored by Eric Duminil's avatar Eric Duminil
Browse files

Repairing wifi_util

MQTT is now broken
parent 0ca1cb47
Pipeline #5734 canceled with stage
#include "wifi_util.h" #include "wifi_util.h"
#include "config.h"
#include "util.h" // -> time.h
#include "led_effects.h"
#include "sensor_console.h"
namespace config { namespace config {
// WiFi config. See 'config.h' if you want to modify those values. // WiFi config. See 'config.h' if you want to modify those values.
const char *wifi_ssid = WIFI_SSID; const char *wifi_ssid = WIFI_SSID;
...@@ -8,7 +13,7 @@ namespace config { ...@@ -8,7 +13,7 @@ namespace config {
#ifdef WIFI_TIMEOUT #ifdef WIFI_TIMEOUT
const uint8_t wifi_timeout = WIFI_TIMEOUT; // [s] Will try to connect during wifi_timeout seconds before failing. const uint8_t wifi_timeout = WIFI_TIMEOUT; // [s] Will try to connect during wifi_timeout seconds before failing.
#else #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 #endif
} }
......
#ifndef WIFI_UTIL_H_INCLUDED #ifndef WIFI_UTIL_H_INCLUDED
#define WIFI_UTIL_H_INCLUDED #define WIFI_UTIL_H_INCLUDED
#include "config.h"
#include "util.h"
#include "led_effects.h"
namespace wifi { namespace wifi {
extern char local_ip[]; extern char local_ip[];
void connect(const char *hostname); void connect(const char *hostname);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment