Move includes to cpp files
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
#ifndef CONFIG_H_
|
#ifndef CONFIG_H_
|
||||||
#define CONFIG_H_
|
#define CONFIG_H_
|
||||||
|
|
||||||
#include "FS.h"
|
|
||||||
#include "LittleFS.h"
|
|
||||||
#include <ArduinoJson.h>
|
#include <ArduinoJson.h>
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
#define WLAN_H
|
#define WLAN_H
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include <ESP8266WiFi.h>
|
|
||||||
#include <PubSubClient.h>
|
#include <PubSubClient.h>
|
||||||
|
|
||||||
void initial_connection(const char *ssid, const char *psk,
|
void initial_connection(const char *ssid, const char *psk,
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
#include "LittleFS.h"
|
||||||
|
|
||||||
void initialize_config(Config *config, JsonDocument json) {
|
void initialize_config(Config *config, JsonDocument json) {
|
||||||
config->ssid = strdup(json["ssid"]);
|
config->ssid = strdup(json["ssid"]);
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#include "config.h"
|
|
||||||
#include "wlan.h"
|
#include "wlan.h"
|
||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
|
#include <ESP8266WiFi.h>
|
||||||
|
#include <PubSubClient.h>
|
||||||
#include <SensirionI2cScd4x.h>
|
#include <SensirionI2cScd4x.h>
|
||||||
#include <Wire.h>
|
#include <Wire.h>
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#include "wlan.h"
|
#include "wlan.h"
|
||||||
#include <ArduinoJson.h>
|
#include <ESP8266WiFi.h>
|
||||||
|
|
||||||
void initial_connection(const char *ssid, const char *psk,
|
void initial_connection(const char *ssid, const char *psk,
|
||||||
const char *hostname) {
|
const char *hostname) {
|
||||||
|
|||||||
Reference in New Issue
Block a user