Fehlermeldung bei SPIFFS Libary

Hallo ich versuche mich gerade mit meinem WEMOS D1 Mini Lite (Esp8266) an einem Access Point (Websocket).

Nun habe ich ein kleines Problem mit der Libary, beim Überprüfen des Codes erhalte ich mei meinem eingestellten Board eine Fehlermeldung, dass die Libary nicht existiert. Sobald ich aber das Board ändere (zum Beispiel zum Node MCU (ESP32), dann läuft das Überprüfen Problemlos und ich erhalte keine Fehlermeldung.
Wie kann das sein? - Und wie bekomme ich das gefixed. Hat jemand schon Erfahrungen mit SPIFFS gesammelt.

Ich hoffe jemand kann mir helfen.
Gruß
Kraas_

welche Libary?

Ich konnte leider kein Screenshot beifügen. Die Libary heißt "SPLIFFS.h"

ESP32 und ESP8266 sind aber 2 verschiedene Welten. Da werden unterschiedliche Libs mitgeliefert.

Gruß Tommy

Compiler-Warnung:

SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]

ersetzen durch #include <FS.h>

Okay, soweit habe ich theoretisch alles gefixed. Es gibt extra ähnliche Libarys für den ESP8266 Chip nur bekomm ich nun eine längere Fehlermeldung, die ich nicht ganz entziffern kann was die zu bedeuten hat. Vielleicht hat ein geschultes Auge vielleicht einen Tipp

Arduino: 1.8.12 Hourly Build 2019/12/16 10:04 (Windows 10), Board: "LOLIN(WEMOS) D1 mini Lite, 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, 1MB (FS:64KB OTA:~470KB), v2 Lower Memory, Disabled, None, Only Sketch, 921600"

In file included from E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp:29:
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.h:27:7: error: redefinition of 'class WiFiUDP'
   27 | class WiFiUDP : public UDP {
      |       ^~~~~~~
In file included from E:\Program Files (x86)\Arduino\libraries\WiFi\src\utility/wifi_drv.h:26,
                 from E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp:26:
C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.0\libraries\ESP8266WiFi\src/WiFiUdp.h:32:7: note: previous definition of 'class WiFiUDP'
   32 | class WiFiUDP : public UDP, public SList<WiFiUDP> {
      |       ^~~~~~~
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp: In constructor 'WiFiUDP::WiFiUDP()':
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp:35:22: error: class 'WiFiUDP' does not have any field named '_sock'
   35 | WiFiUDP::WiFiUDP() : _sock(NO_SOCKET_AVAIL) {}
      |                      ^~~~~
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp: In member function 'virtual uint8_t WiFiUDP::begin(uint16_t)':
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp:45:9: error: '_sock' was not declared in this scope; did you mean 'sock'?
   45 |         _sock = sock;
      |         ^~~~~
      |         sock
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp:46:9: error: '_port' was not declared in this scope; did you mean 'port'?
   46 |         _port = port;
      |         ^~~~~
      |         port
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp: In member function 'virtual int WiFiUDP::available()':
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp:56:7: error: '_sock' was not declared in this scope
   56 |   if (_sock != NO_SOCKET_AVAIL)
      |       ^~~~~
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp: In member function 'virtual void WiFiUDP::stop()':
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp:66:8: error: '_sock' was not declared in this scope
   66 |    if (_sock == NO_SOCKET_AVAIL)
      |        ^~~~~
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp:69:26: error: '_sock' was not declared in this scope
   69 |    ServerDrv::stopClient(_sock);
      |                          ^~~~~
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp: In member function 'virtual int WiFiUDP::beginPacket(IPAddress, uint16_t)':
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp:88:7: error: '_sock' was not declared in this scope
   88 |   if (_sock == NO_SOCKET_AVAIL)
      |       ^~~~~
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp:90:7: error: '_sock' was not declared in this scope
   90 |   if (_sock != NO_SOCKET_AVAIL)
      |       ^~~~~
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp: In member function 'virtual int WiFiUDP::endPacket()':
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp:101:32: error: '_sock' was not declared in this scope
  101 |  return ServerDrv::sendUdpData(_sock);
      |                                ^~~~~
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp: In member function 'virtual size_t WiFiUDP::write(const uint8_t*, size_t)':
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp:111:27: error: '_sock' was not declared in this scope
  111 |  ServerDrv::insertDataBuf(_sock, buffer, size);
      |                           ^~~~~
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp: In member function 'virtual int WiFiUDP::read()':
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp:125:23: error: '_sock' was not declared in this scope
  125 |    ServerDrv::getData(_sock, &b);
      |                       ^~~~~
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp: In member function 'virtual int WiFiUDP::read(unsigned char*, size_t)':
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp:137:31: error: '_sock' was not declared in this scope
  137 |    if (!ServerDrv::getDataBuf(_sock, buffer, &size))
      |                               ^~~~~
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp: In member function 'virtual int WiFiUDP::peek()':
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp:152:22: error: '_sock' was not declared in this scope
  152 |   ServerDrv::getData(_sock, &b, 1);
      |                      ^~~~~
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp: In member function 'virtual IPAddress WiFiUDP::remoteIP()':
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp:166:25: error: '_sock' was not declared in this scope
  166 |  WiFiDrv::getRemoteData(_sock, _remoteIp, _remotePort);
      |                         ^~~~~
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp: In member function 'virtual uint16_t WiFiUDP::remotePort()':
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp:176:25: error: '_sock' was not declared in this scope
  176 |  WiFiDrv::getRemoteData(_sock, _remoteIp, _remotePort);
      |                         ^~~~~
exit status 1
Fehler beim Kompilieren für das Board LOLIN(WEMOS) D1 mini Lite.

Dieser Bericht wäre detaillierter, wenn die Option
"Ausführliche Ausgabe während der Kompilierung"
in Datei -> Voreinstellungen aktiviert wäre.

Nachdem ich jetzt alle Libarys durch die ähnlichen Libarys des ESP8266 ersetzt habe, bekomme ich eine Fehlermeldung, die ich nicht entschlüsseln kann, vielleicht kann jemand mit einem geschulten Blick erkennen, worum es sich handelt.

LG
Kraas_

Arduino: 1.8.12 Hourly Build 2019/12/16 10:04 (Windows 10), Board: "LOLIN(WEMOS) D1 mini Lite, 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, 1MB (FS:64KB OTA:~470KB), v2 Lower Memory, Disabled, None, Only Sketch, 921600"

In file included from E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp:29:
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.h:27:7: error: redefinition of 'class WiFiUDP'
   27 | class WiFiUDP : public UDP {
      |       ^~~~~~~
In file included from E:\Program Files (x86)\Arduino\libraries\WiFi\src\utility/wifi_drv.h:26,
                 from E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp:26:
C:\Users\admin\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.0\libraries\ESP8266WiFi\src/WiFiUdp.h:32:7: note: previous definition of 'class WiFiUDP'
   32 | class WiFiUDP : public UDP, public SList<WiFiUDP> {
      |       ^~~~~~~
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp: In constructor 'WiFiUDP::WiFiUDP()':
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp:35:22: error: class 'WiFiUDP' does not have any field named '_sock'
   35 | WiFiUDP::WiFiUDP() : _sock(NO_SOCKET_AVAIL) {}
      |                      ^~~~~
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp: In member function 'virtual uint8_t WiFiUDP::begin(uint16_t)':
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp:45:9: error: '_sock' was not declared in this scope; did you mean 'sock'?
   45 |         _sock = sock;
      |         ^~~~~
      |         sock
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp:46:9: error: '_port' was not declared in this scope; did you mean 'port'?
   46 |         _port = port;
      |         ^~~~~
      |         port
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp: In member function 'virtual int WiFiUDP::available()':
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp:56:7: error: '_sock' was not declared in this scope
   56 |   if (_sock != NO_SOCKET_AVAIL)
      |       ^~~~~
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp: In member function 'virtual void WiFiUDP::stop()':
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp:66:8: error: '_sock' was not declared in this scope
   66 |    if (_sock == NO_SOCKET_AVAIL)
      |        ^~~~~
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp:69:26: error: '_sock' was not declared in this scope
   69 |    ServerDrv::stopClient(_sock);
      |                          ^~~~~
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp: In member function 'virtual int WiFiUDP::beginPacket(IPAddress, uint16_t)':
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp:88:7: error: '_sock' was not declared in this scope
   88 |   if (_sock == NO_SOCKET_AVAIL)
      |       ^~~~~
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp:90:7: error: '_sock' was not declared in this scope
   90 |   if (_sock != NO_SOCKET_AVAIL)
      |       ^~~~~
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp: In member function 'virtual int WiFiUDP::endPacket()':
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp:101:32: error: '_sock' was not declared in this scope
  101 |  return ServerDrv::sendUdpData(_sock);
      |                                ^~~~~
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp: In member function 'virtual size_t WiFiUDP::write(const uint8_t*, size_t)':
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp:111:27: error: '_sock' was not declared in this scope
  111 |  ServerDrv::insertDataBuf(_sock, buffer, size);
      |                           ^~~~~
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp: In member function 'virtual int WiFiUDP::read()':
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp:125:23: error: '_sock' was not declared in this scope
  125 |    ServerDrv::getData(_sock, &b);
      |                       ^~~~~
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp: In member function 'virtual int WiFiUDP::read(unsigned char*, size_t)':
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp:137:31: error: '_sock' was not declared in this scope
  137 |    if (!ServerDrv::getDataBuf(_sock, buffer, &size))
      |                               ^~~~~
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp: In member function 'virtual int WiFiUDP::peek()':
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp:152:22: error: '_sock' was not declared in this scope
  152 |   ServerDrv::getData(_sock, &b, 1);
      |                      ^~~~~
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp: In member function 'virtual IPAddress WiFiUDP::remoteIP()':
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp:166:25: error: '_sock' was not declared in this scope
  166 |  WiFiDrv::getRemoteData(_sock, _remoteIp, _remotePort);
      |                         ^~~~~
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp: In member function 'virtual uint16_t WiFiUDP::remotePort()':
E:\Program Files (x86)\Arduino\libraries\WiFi\src\WiFiUdp.cpp:176:25: error: '_sock' was not declared in this scope
  176 |  WiFiDrv::getRemoteData(_sock, _remoteIp, _remotePort);
      |                         ^~~~~
exit status 1
Fehler beim Kompilieren für das Board LOLIN(WEMOS) D1 mini Lite.

Dieser Bericht wäre detaillierter, wenn die Option
"Ausführliche Ausgabe während der Kompilierung"
in Datei -> Voreinstellungen aktiviert wäre.

Da must du schon großen Bockmist bei der Installation gemacht haben.
Welche Core-Version hast du für den ESP8266 installiert ?

Das beste wäre eine Neuinstallation des Core durchzuführen.
Und mache bitte keine manuelle Installtion der einzelnen Libraries, die passen evtl. nicht zusammen.
Installiere den kompletten Core neu.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.