Fix Esp.h includes

This commit is contained in:
fvanroie 2020-11-18 21:19:00 +01:00
parent 92aeebce73
commit 51ca8ca68b
6 changed files with 22 additions and 4 deletions

View File

@ -1,3 +1,6 @@
/* MIT License - Copyright (c) 2020 Francis Van Roie
For full license information read the LICENSE file in the project folder */
#include <Arduino.h>
#include "ArduinoJson.h"
#include "ArduinoLog.h"

View File

@ -1,3 +1,6 @@
/* MIT License - Copyright (c) 2020 Francis Van Roie
For full license information read the LICENSE file in the project folder */
#ifndef HASP_FILESYSTEM_H
#define HASP_FILESYSTEM_H
@ -20,7 +23,7 @@ void filesystemInfo();
#if defined(ARDUINO_ARCH_ESP8266) || defined(ARDUINO_ARCH_ESP32)
#include <FS.h>
#include <ESP.h>
#include <Esp.h>
#if HASP_USE_SPIFFS > 0
#define HASP_FS SPIFFS

View File

@ -1,13 +1,16 @@
/* MIT License - Copyright (c) 2020 Francis Van Roie
For full license information read the LICENSE file in the project folder */
#include "hasp_hal.h"
#include "hasp_conf.h"
#if defined(ESP8266)
#include <ESP.h>
#include <Esp.h>
#include <ESP8266WiFi.h>
#endif
#if defined(ESP32)
#include <ESP.h>
#include <Esp.h>
#include <Wifi.h>
#include "esp_system.h"
#endif

View File

@ -1,3 +1,6 @@
/* MIT License - Copyright (c) 2020 Francis Van Roie
For full license information read the LICENSE file in the project folder */
#ifndef HASP_HAL_H
#define HASP_HAL_H

View File

@ -1,3 +1,6 @@
/* MIT License - Copyright (c) 2020 Francis Van Roie
For full license information read the LICENSE file in the project folder */
#include "hasp_conf.h"
#if HASP_USE_MQTT > 0
@ -14,7 +17,7 @@ WiFiClient mqttNetworkClient;
#elif defined(ARDUINO_ARCH_ESP8266)
#include <ESP8266WiFi.h>
#include <EEPROM.h>
#include <ESP.h>
#include <Esp.h>
WiFiClient mqttNetworkClient;
#else
#if defined(STM32F4xx) && HASP_USE_WIFI > 0

View File

@ -1,3 +1,6 @@
/* MIT License - Copyright (c) 2020 Francis Van Roie
For full license information read the LICENSE file in the project folder */
#ifndef HASP_MQTT_H
#define HASP_MQTT_H