Nachdem die ESPEasy Version auf die 2.0 gehoben wurde, bin ich nicht mehr
in der Lage es zu kompilieren. Ich habe schon unterschiedliche Arduino Versionen
ausprobiert, jedoch ohne Erfolg. Kann mir evtl. jemand einen Tipp geben welche
Version ich nutzen muss?
Architektur ist ein Wemos D1 mini
Danke im Voraus!
https://github.com/letscontrolit/ESPEasy
Hi,
hast du das alles berücksichtigt?
Cloning
Dont forget to use the --recursive option, so you get all the submodules:
git clone --recursive https://github.com/letscontrolit/ESPEasy.git
Missing libraries
You might have missing libraries after you did a git pull. (after we added/changed libraries)
To download missing libraries you might have run this:
git submodule update --checkout --init
Ja hatte ich alles gemacht.....hm...ich habe noch einmal alles gelöscht, die 1.6.13 heruntergeladen und die Libs
in das Lib Verzeichnis kopiert. Die ESPEasy src Dateien in einen neuen Unterordner ESPEasy kopiert und dann
klappt es auf einmal. Merkwürdig!
Hallo,
die Sache ist ja noch etwas "aktuell". Ich versuche mich auch daran eine Version mit der Arduino IDE zu kombilieren.
Dabei halte ich mich genau an diese Anleitung:https://www.letscontrolit.com/wiki/index.php/Tutorial_Arduino_Firmware_Upload (https://www.letscontrolit.com/wiki/index.php/Tutorial_Arduino_Firmware_Upload)
Leider erhalte ich beim kompilieren in der IDE folgende Fehlermeldungen, mit denen ich nichts anzufangen weiß.
Arduino: 1.6.12 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, 115200, 4M (1M SPIFFS)"
Command:522: error: variable or field 'printDirectory' declared void
void printDirectory(File dir, int numTabs) {
^
Command:522: error: 'File' was not declared in this scope
Command:522: error: expected primary-expression before 'int'
void printDirectory(File dir, int numTabs) {
^
Networking:394: error: variable or field 'SSDP_schema' declared void
void SSDP_schema(WiFiClient client) {
^
Networking:394: error: 'WiFiClient' was not declared in this scope
_N001_Email:110: error: 'WiFiClient' was not declared in this scope
boolean NPlugin_001_MTA(WiFiClient client, String aStr, String aWaitForPattern)
^
_N001_Email:110: error: expected primary-expression before 'aStr'
boolean NPlugin_001_MTA(WiFiClient client, String aStr, String aWaitForPattern)
^
_N001_Email:110: error: expected primary-expression before 'aWaitForPattern'
boolean NPlugin_001_MTA(WiFiClient client, String aStr, String aWaitForPattern)
^
_N001_Email:110: error: expression list treated as compound expression in initializer [-fpermissive]
boolean NPlugin_001_MTA(WiFiClient client, String aStr, String aWaitForPattern)
^
C:\Users\Achim\AppData\Local\Temp\arduino_modified_sketch_826186\Command.ino: In function 'bool safeReadStringUntil(Stream&, String&, char, int, int)':
Command:29: error: 'LOG_LEVEL_ERROR' was not declared in this scope
addLog(LOG_LEVEL_ERROR, F("Not enough bufferspace to read all input data!"));
^
Command:37: error: 'LOG_LEVEL_ERROR' was not declared in this scope
addLog(LOG_LEVEL_ERROR, F("Timeout while reading input data!"));
^
C:\Users\Achim\AppData\Local\Temp\arduino_modified_sketch_826186\Command.ino: In function 'void ExecuteCommand(byte, const char*)':
Command:89: error: 'RTC' was not declared in this scope
RTC.factoryResetCounter = 0;
^
Command:106: error: 'Settings' was not declared in this scope
if (Settings.NotificationEnabled[Par1 - 1] && Settings.Notification[Par1 - 1] != 0)
^
Command:109: error: aggregate 'EventStruct TempEvent' has incomplete type and cannot be defined
struct EventStruct TempEvent;
^
Command:111: error: 'NPlugin_id' was not declared in this scope
if (NPlugin_id[NotificationProtocolIndex] != 0)
^
Command:112: error: 'NPlugin_ptr' was not declared in this scope
NPlugin_ptr[NotificationProtocolIndex](NPLUGIN_NOTIFY, &TempEvent, message);
^
Command:112: error: 'NPLUGIN_NOTIFY' was not declared in this scope
NPlugin_ptr[NotificationProtocolIndex](NPLUGIN_NOTIFY, &TempEvent, message);
^
Command:120: error: 'RTC' was not declared in this scope
RTC.flashDayCounter = 0;
^
Command:137: error: 'File' was not declared in this scope
File root = SD.open("/");
^
Command:137: error: expected ';' before 'root'
File root = SD.open("/");
^
Command:138: error: 'root' was not declared in this scope
root.rewindDirectory();
^
Command:139: error: 'printDirectory' was not declared in this scope
printDirectory(root, 0);
^
Command:150: error: 'SD' was not declared in this scope
SD.remove((char*)fname.c_str());
^
Command:155: error: 'lowestRAM' was not declared in this scope
Serial.print(lowestRAM);
^
Command:157: error: 'lowestRAMid' was not declared in this scope
Serial.println(lowestRAMid);
^
Command:170: error: 'loopCounterLast' was not declared in this scope
Serial.print(100 - (100 * loopCounterLast / loopCounterMax));
^
Command:170: error: 'loopCounterMax' was not declared in this scope
Serial.print(100 - (100 * loopCounterLast / loopCounterMax));
^
Command:188: error: 'SecuritySettings' was not declared in this scope
Serial.println(sizeof(SecuritySettings));
^
Command:190: error: 'Settings' was not declared in this scope
Serial.println(sizeof(Settings));
^
Command:192: error: 'ExtraTaskSettings' was not declared in this scope
Serial.println(sizeof(ExtraTaskSettings));
^
Command:194: error: 'Device' was not declared in this scope
Serial.println(sizeof(Device));
^
Command:206: error: 'Wire' was not declared in this scope
Wire.beginTransmission(Par1); // address
^
Command:215: error: 'Wire' was not declared in this scope
Wire.beginTransmission(Par1); // address
^
Command:231: error: 'Settings' was not declared in this scope
Settings.Build = Par1;
^
Command:238: error: 'Settings' was not declared in this scope
Settings.deepSleep = 0;
^
Command:248: error: 'Wire' was not declared in this scope
Wire.beginTransmission(address);
^
Command:281: error: 'UserVar' was not declared in this scope
UserVar[(VARS_PER_TASK * (Par1 - 1)) + Par2 - 1] = result;
^
Command:281: error: 'VARS_PER_TASK' was not declared in this scope
UserVar[(VARS_PER_TASK * (Par1 - 1)) + Par2 - 1] = result;
^
Command:293: error: 'RULES_TIMER_MAX' was not declared in this scope
if (Par1>=0 && Par1<RULES_TIMER_MAX)
^
Command:298: error: 'RulesTimer' was not declared in this scope
RulesTimer[Par1 - 1] = millis() + (1000 * Par2);
^
Command:301: error: 'RulesTimer' was not declared in this scope
RulesTimer[Par1 - 1] = 0L;
^
Command:315: error: 'Settings' was not declared in this scope
Settings.UseRules = true;
^
Command:317: error: 'Settings' was not declared in this scope
Settings.UseRules = false;
^
Command:326: error: 'Settings' was not declared in this scope
if (Settings.UseRules)
^
Command:353: error: 'MQTTclient' was not declared in this scope
MQTTclient.publish(topic.c_str(), value.c_str(), Settings.MQTTRetainFlag);
^
Command:353: error: 'Settings' was not declared in this scope
MQTTclient.publish(topic.c_str(), value.c_str(), Settings.MQTTRetainFlag);
^
Command:367: error: 'IPAddress' was not declared in this scope
IPAddress UDP_IP(ipaddress[0], ipaddress[1], ipaddress[2], ipaddress[3]);
^
Command:367: error: expected ';' before 'UDP_IP'
IPAddress UDP_IP(ipaddress[0], ipaddress[1], ipaddress[2], ipaddress[3]);
^
Command:368: error: 'portUDP' was not declared in this scope
portUDP.beginPacket(UDP_IP, port.toInt());
^
Command:368: error: 'UDP_IP' was not declared in this scope
portUDP.beginPacket(UDP_IP, port.toInt());
^
Command:381: error: 'WiFiClient' was not declared in this scope
WiFiClient client;
^
Command:381: error: expected ';' before 'client'
WiFiClient client;
^
Command:382: error: 'client' was not declared in this scope
if (client.connect(host.c_str(), port.toInt()))
^
Command:399: error: 'LOG_LEVEL_DEBUG' was not declared in this scope
addLog(LOG_LEVEL_DEBUG, line);
^
Command:414: error: 'SecuritySettings' was not declared in this scope
strcpy(SecuritySettings.WifiSSID, Line + 9);
^
Command:420: error: 'SecuritySettings' was not declared in this scope
strcpy(SecuritySettings.WifiKey, Line + 8);
^
Command:458: error: 'WiFi' was not declared in this scope
WiFi.persistent(true); // use SDK storage of SSID/WPA parameters
^
Command:484: error: 'Settings' was not declared in this scope
Settings.SerialLogLevel = Par1;
^
Command:491: error: 'Settings' was not declared in this scope
if (!str2ip(TmpStr1, Settings.IP))
^
Command:502: error: 'IPAddress' was not declared in this scope
IPAddress ip = WiFi.localIP();
^
Command:502: error: expected ';' before 'ip'
IPAddress ip = WiFi.localIP();
^
Command:503: error: 'ip' was not declared in this scope
sprintf_P(str, PSTR("%u.%u.%u.%u"), ip[0], ip[1], ip[2], ip[3]);
^
Command:505: error: 'BUILD' was not declared in this scope
Serial.print(F(" Build : ")); Serial.println((int)BUILD);
^
Command:506: error: 'Settings' was not declared in this scope
Serial.print(F(" Unit : ")); Serial.println((int)Settings.Unit);
^
Command:507: error: 'SecuritySettings' was not declared in this scope
Serial.print(F(" WifiSSID : ")); Serial.println(SecuritySettings.WifiSSID);
^
C:\Users\Achim\AppData\Local\Temp\arduino_modified_sketch_826186\Command.ino: At global scope:
Command:522: error: variable or field 'printDirectory' declared void
void printDirectory(File dir, int numTabs) {
^
Command:522: error: 'File' was not declared in this scope
Command:522: error: expected primary-expression before 'int'
void printDirectory(File dir, int numTabs) {
^
In file included from e:\program files\arduino\espeasy_portable\arduino-1.6.12p230\portable\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\typeinfo:34:0,
from e:\program files\arduino\espeasy_portable\arduino-1.6.12p230\portable\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\functional:53,
from E:\Program Files\Arduino\ESPeasy_portable\arduino-1.6.12P230\portable\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/ESP8266WiFiGeneric.h:27,
Mehrere Bibliotheken wurden für "Servo.h" gefunden
Benutzt: E:\Program Files\Arduino\ESPeasy_portable\arduino-1.6.12P230\portable\packages\esp8266\hardware\esp8266\2.3.0\libraries\Servo
from E:\Program Files\Arduino\ESPeasy_portable\arduino-1.6.12P230\portable\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/ESP8266WiFiSTA.h:28,
Nicht benutzt: E:\Program Files\Arduino\ESPeasy_portable\arduino-1.6.12P230\libraries\Servo
Mehrere Bibliotheken wurden für "SD.h" gefunden
Benutzt: E:\Program Files\Arduino\ESPeasy_portable\arduino-1.6.12P230\portable\packages\esp8266\hardware\esp8266\2.3.0\libraries\SD
Nicht benutzt: E:\Program Files\Arduino\ESPeasy_portable\arduino-1.6.12P230\libraries\SD
from E:\Program Files\Arduino\ESPeasy_portable\arduino-1.6.12P230\portable\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/ESP8266WiFi.h:34,
from C:\Users\Achim\AppData\Local\Temp\arduino_modified_sketch_826186\ESPEasy.ino:273:
e:\program files\arduino\espeasy_portable\arduino-1.6.12p230\portable\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\exception:35:37: error: expected declaration before end of line
#pragma GCC visibility push(default)
^
exit status 1
variable or field 'printDirectory' declared void
Dieser Bericht wäre detaillierter, wenn die Option
"Ausführliche Ausgabe während der Kompilierung"
in Datei -> Voreinstellungen aktiviert wäre.
Ich habe auch scho nVerschieden Versionen der IDE und der source Versucht, es erscheint immer die gleiche Meldungen.
Kann mir bitte jemand weiterhelfen?
Edit: Ich habe den Projektordner falsch benannt, statt ESPEasy habe ich immer ESPeasy benutzt...
Grüße