Move includes to cpp files

This commit is contained in:
2025-11-25 17:27:05 +01:00
parent 463757fa60
commit a9ca6bc28d
5 changed files with 67 additions and 68 deletions

View File

@@ -1,8 +1,6 @@
#ifndef CONFIG_H_
#define CONFIG_H_
#include "FS.h"
#include "LittleFS.h"
#include <ArduinoJson.h>
typedef struct {

View File

@@ -2,7 +2,6 @@
#define WLAN_H
#include "config.h"
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
void initial_connection(const char *ssid, const char *psk,

View File

@@ -1,4 +1,5 @@
#include "config.h"
#include "LittleFS.h"
void initialize_config(Config *config, JsonDocument json) {
config->ssid = strdup(json["ssid"]);

View File

@@ -1,6 +1,7 @@
#include "config.h"
#include "wlan.h"
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include <SensirionI2cScd4x.h>
#include <Wire.h>

View File

@@ -1,5 +1,5 @@
#include "wlan.h"
#include <ArduinoJson.h>
#include <ESP8266WiFi.h>
void initial_connection(const char *ssid, const char *psk,
const char *hostname) {