mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
make standalone build compile again
This commit is contained in:
@@ -125,8 +125,11 @@ uint32_t analogReadMilliVolts(uint8_t pin) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
void analogSetPinAttenuation(uint8_t pin, adc_attenuation_t attenuation) {
|
||||
}
|
||||
|
||||
void analogSetAttenuation(adc_attenuation_t attenuation) {
|
||||
}
|
||||
void analogSetPinAttenuation(uint8_t pin, adc_attenuation_t attenuation){};
|
||||
void analogSetAttenuation(adc_attenuation_t attenuation){};
|
||||
void dacWrite(uint8_t pin, uint8_t value){};
|
||||
double ledcSetup(uint8_t chan, double freq, uint8_t bit_num) {
|
||||
return 0;
|
||||
};
|
||||
void ledcAttachPin(uint8_t pin, uint8_t chan){};
|
||||
void ledcWrite(uint8_t chan, uint32_t duty){};
|
||||
|
||||
@@ -59,8 +59,12 @@ int digitalRead(uint8_t pin);
|
||||
uint32_t analogReadMilliVolts(uint8_t pin);
|
||||
|
||||
typedef enum { ADC_0db, ADC_2_5db, ADC_6db, ADC_11db } adc_attenuation_t;
|
||||
void analogSetPinAttenuation(uint8_t pin, adc_attenuation_t attenuation);
|
||||
void analogSetAttenuation(adc_attenuation_t attenuation);
|
||||
void analogSetPinAttenuation(uint8_t pin, adc_attenuation_t attenuation);
|
||||
void analogSetAttenuation(adc_attenuation_t attenuation);
|
||||
void dacWrite(uint8_t pin, uint8_t value);
|
||||
double ledcSetup(uint8_t chan, double freq, uint8_t bit_num);
|
||||
void ledcAttachPin(uint8_t pin, uint8_t chan);
|
||||
void ledcWrite(uint8_t chan, uint32_t duty);
|
||||
|
||||
#define PROGMEM
|
||||
#define PGM_P const char *
|
||||
|
||||
@@ -54,22 +54,23 @@ class DummySettings {
|
||||
uint8_t solar_maxflow = 30;
|
||||
|
||||
// MQTT
|
||||
uint16_t publish_time = 10;
|
||||
uint8_t mqtt_qos = 0;
|
||||
bool mqtt_retain = false;
|
||||
bool enabled = true;
|
||||
uint8_t nested_format = 1; // 1=nested 2=single
|
||||
String discovery_prefix = "homeassistant";
|
||||
bool ha_enabled = true;
|
||||
String base = "ems-esp";
|
||||
bool publish_single = false;
|
||||
bool send_response = true;
|
||||
String host = "192.168.1.4";
|
||||
uint16_t port = 1883;
|
||||
String clientId = "ems-esp";
|
||||
String username = "";
|
||||
uint16_t keepAlive = 60;
|
||||
bool cleanSession = false;
|
||||
uint16_t publish_time = 10;
|
||||
uint8_t mqtt_qos = 0;
|
||||
bool mqtt_retain = false;
|
||||
bool enabled = true;
|
||||
uint8_t nested_format = 1; // 1=nested 2=single
|
||||
String discovery_prefix = "homeassistant";
|
||||
bool ha_enabled = true;
|
||||
String base = "ems-esp";
|
||||
bool publish_single = false;
|
||||
bool publish_single2cmd = false;
|
||||
bool send_response = true;
|
||||
String host = "192.168.1.4";
|
||||
uint16_t port = 1883;
|
||||
String clientId = "ems-esp";
|
||||
String username = "";
|
||||
uint16_t keepAlive = 60;
|
||||
bool cleanSession = false;
|
||||
|
||||
uint16_t publish_time_boiler = 10;
|
||||
uint16_t publish_time_thermostat = 10;
|
||||
|
||||
Reference in New Issue
Block a user