Submit to precommit

This commit is contained in:
Cabooman 2024-01-30 09:23:33 +01:00
parent 527bc19649
commit 44e8e0bb06
4 changed files with 7 additions and 7 deletions

View file

@ -21,7 +21,7 @@
/* Select inverter communication protocol. See Wiki for which to use with your inverter: https://github.com/dalathegreat/BYD-Battery-Emulator-For-Gen24/wiki */
//#define BYD_CAN //Enable this line to emulate a "BYD Battery-Box Premium HVS" over CAN Bus
#define BYD_MODBUS //Enable this line to emulate a "BYD 11kWh HVM battery" over Modbus RTU
#define BYD_MODBUS //Enable this line to emulate a "BYD 11kWh HVM battery" over Modbus RTU
//#define LUNA2000_MODBUS //Enable this line to emulate a "Luna2000 battery" over Modbus RTU
//#define PYLON_CAN //Enable this line to emulate a "Pylontech battery" over CAN bus
//#define SMA_CAN //Enable this line to emulate a "BYD Battery-Box H 8.9kWh, 7 mod" over CAN bus
@ -37,7 +37,7 @@
//#define SERIAL_LINK_RECEIVER //Enable this line to receive battery data over RS485 pins from another Lilygo (This LilyGo interfaces with inverter)
//#define SERIAL_LINK_TRANSMITTER //Enable this line to send battery data over RS485 pins to another Lilygo (This LilyGo interfaces with battery)
#define WEBSERVER //Enable this line to enable WiFi, and to run the webserver. See USER_SETTINGS.cpp for the Wifi settings.
#define MQTT // Enable this line to enable MQTT
#define MQTT // Enable this line to enable MQTT
/* Battery limits: These are set in the USER_SETTINGS.cpp file, or later on via the Webserver */
extern volatile uint16_t BATTERY_WH_MAX;

View file

@ -4,11 +4,11 @@
#include <Arduino.h>
class MyTimer {
public:
public:
MyTimer(unsigned long interval);
bool elapsed();
private:
private:
unsigned long interval;
unsigned long previousMillis;
};

View file

@ -133,10 +133,10 @@ void init_webserver() {
// Start server
server.begin();
#ifdef MQTT
#ifdef MQTT
// Init MQTT
init_mqtt();
#endif
#endif
}
void init_WiFi_AP() {

View file

@ -11,7 +11,7 @@
#include "../../lib/me-no-dev-AsyncTCP/src/AsyncTCP.h"
#include "../../lib/me-no-dev-ESPAsyncWebServer/src/ESPAsyncWebServer.h"
#include "../../lib/miwagner-ESP32-Arduino-CAN/ESP32CAN.h"
#include "../config.h" // Needed for LED defines
#include "../config.h" // Needed for LED defines
#ifdef MQTT
#include "../mqtt/mqtt.h"
#endif