mqtt-ir-transceiver icon indicating copy to clipboard operation
mqtt-ir-transceiver copied to clipboard

Does not compile and lots of errors and warnings (SPIFFS etc.)

Open DerEmder opened this issue 3 years ago • 0 comments

No luck compiling it. Current Visual Studio Code with PlatformIO under Linux Mint 20 with all libraries installed. All I get is:

Processing d1_mini (platform: espressif8266; framework: arduino; board: d1_mini)
-------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/d1_mini.html
PLATFORM: Espressif 8266 (3.2.0) > WeMos D1 R2 and mini
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
PACKAGES: 
 - framework-arduinoespressif8266 3.30002.0 (3.0.2) 
 - tool-esptool 1.413.0 (4.13) 
 - tool-esptoolpy 1.30000.201119 (3.0.0) 
 - toolchain-xtensa 2.100300.210717 (10.3.0)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 43 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <PubSubClient> 2.6.0
|-- <WiFiManager> 0.16.0
|   |-- <DNSServer> 1.1.0
|   |   |-- <ESP8266WiFi> 1.0
|   |-- <ESP8266WebServer> 1.0
|   |   |-- <ESP8266WiFi> 1.0
|   |-- <ESP8266WiFi> 1.0
|-- <ArduinoJson> 5.13.4
|-- <IRremoteESP8266> 2.7.0+sha.f9d7e5c
|-- <PubSubClient> 2.8.0
|-- <ArduinoJson> 6.19.1
|-- <IRremoteESP8266> 2.8.1
|-- <DNSServer> 1.1.0
|   |-- <ESP8266WiFi> 1.0
|-- <EEPROM> 1.0
|-- <ESP8266WebServer> 1.0
|   |-- <ESP8266WiFi> 1.0
|-- <ESP8266WiFi> 1.0
|-- <ESP8266httpUpdate> 1.3
|   |-- <ESP8266HTTPClient> 1.2
|   |   |-- <ESP8266WiFi> 1.0
|   |-- <ESP8266WiFi> 1.0
Building in release mode
Compiling .pio/build/d1_mini/src/common.cpp.o
Compiling .pio/build/d1_mini/src/debug.cpp.o
Compiling .pio/build/d1_mini/src/globals.cpp.o
Compiling .pio/build/d1_mini/src/main.cpp.o
Compiling .pio/build/d1_mini/src/mqtt.cpp.o
Generating LD script .pio/build/d1_mini/ld/local.eagle.app.v6.common.ld
Compiling .pio/build/d1_mini/lib766/[email protected]/PubSubClient.cpp.o
Compiling .pio/build/d1_mini/lib472/ESP8266WiFi/BearSSLHelpers.cpp.o
Compiling .pio/build/d1_mini/lib472/ESP8266WiFi/CertStoreBearSSL.cpp.o
src/main.cpp:89:11: warning: unknown escape sequence: '\/'
   89 |         DynamicJsonBuffer jsonBuffer;
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                                                                 
src/main.cpp:89:11: error: DynamicJsonBuffer is a class from ArduinoJson 5. Please see https://arduinojson.org/upgrade to learn how to upgrade your program to ArduinoJson version 6
src/main.cpp:205:11: warning: unknown escape sequence: '\/'
  205 |     DynamicJsonBuffer jsonBuffer;
      |           ^~~~~~~~~~~~~~~~~~~~~~~                                                                                                                                     
src/main.cpp:205:11: error: DynamicJsonBuffer is a class from ArduinoJson 5. Please see https://arduinojson.org/upgrade to learn how to upgrade your program to ArduinoJson version 6
Compiling .pio/build/d1_mini/lib472/ESP8266WiFi/ESP8266WiFi.cpp.o
Archiving .pio/build/d1_mini/lib766/[email protected]
Indexing .pio/build/d1_mini/lib766/[email protected]
Compiling .pio/build/d1_mini/lib472/ESP8266WiFi/ESP8266WiFiAP.cpp.o
src/main.cpp: In function 'void setup()':
src/main.cpp:73:7: warning: 'SPIFFS' is deprecated: SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
   73 |   if (SPIFFS.begin())
      |       ^~~~~~
In file included from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/CertStoreBearSSL.h:26,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:30,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecure.h:23,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiServerSecure.h:20,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:41,
                 from src/globals.h:53,
                 from src/main.cpp:40:
/home/dtshl/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/FS.h:275:15: note: declared here
  275 | extern fs::FS SPIFFS __attribute__((deprecated("SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems.")));
      |               ^~~~~~
src/main.cpp:76:9: warning: 'SPIFFS' is deprecated: SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
   76 |     if (SPIFFS.exists("/config.json"))
      |         ^~~~~~
In file included from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/CertStoreBearSSL.h:26,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:30,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecure.h:23,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiServerSecure.h:20,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:41,
                 from src/globals.h:53,
                 from src/main.cpp:40:
/home/dtshl/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/FS.h:275:15: note: declared here
  275 | extern fs::FS SPIFFS __attribute__((deprecated("SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems.")));
      |               ^~~~~~
src/main.cpp:80:25: warning: 'SPIFFS' is deprecated: SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
   80 |       File configFile = SPIFFS.open("/config.json", "r");
      |                         ^~~~~~
In file included from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/CertStoreBearSSL.h:26,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:30,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecure.h:23,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiServerSecure.h:20,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:41,
                 from src/globals.h:53,
                 from src/main.cpp:40:
/home/dtshl/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/FS.h:275:15: note: declared here
  275 | extern fs::FS SPIFFS __attribute__((deprecated("SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems.")));
      |               ^~~~~~
src/main.cpp:89:27: error: 'jsonBuffer' was not declared in this scope; did you mean 'JsonBuffer'?
   89 |         DynamicJsonBuffer jsonBuffer;
      |                           ^~~~~~~~~~
      |                           JsonBuffer
src/main.cpp:92:14: error: 'ArduinoJson::JsonObject' {aka 'class ArduinoJson6191_F1::ObjectRef'} has no member named 'printTo'
   92 |         json.printTo(tmpBuff, sizeof(tmpBuff));
      |              ^~~~~~~
src/main.cpp:94:18: error: 'ArduinoJson::JsonObject' {aka 'class ArduinoJson6191_F1::ObjectRef'} has no member named 'success'
   94 |         if (json.success())
      |                  ^~~~~~~
src/main.cpp:147:61: warning: 'SPIFFS' is deprecated: SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
  147 |   if ( digitalRead(TRIGGER_PIN) == BUTTON_ACTIVE_LEVEL || (!SPIFFS.exists("/config.json")) )
      |                                                             ^~~~~~
In file included from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/CertStoreBearSSL.h:26,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:30,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecure.h:23,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiServerSecure.h:20,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:41,
                 from src/globals.h:53,
                 from src/main.cpp:40:
/home/dtshl/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/FS.h:275:15: note: declared here
  275 | extern fs::FS SPIFFS __attribute__((deprecated("SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems.")));
      |               ^~~~~~
src/main.cpp:205:23: error: 'jsonBuffer' was not declared in this scope; did you mean 'JsonBuffer'?
  205 |     DynamicJsonBuffer jsonBuffer;
      |                       ^~~~~~~~~~
      |                       JsonBuffer
src/main.cpp:214:23: warning: 'SPIFFS' is deprecated: SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
  214 |     File configFile = SPIFFS.open("/config.json", "w");
      |                       ^~~~~~
In file included from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/CertStoreBearSSL.h:26,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:30,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecure.h:23,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiServerSecure.h:20,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:41,
                 from src/globals.h:53,
                 from src/main.cpp:40:
/home/dtshl/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/FS.h:275:15: note: declared here
  275 | extern fs::FS SPIFFS __attribute__((deprecated("SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems.")));
      |               ^~~~~~
src/main.cpp:218:12: error: 'ArduinoJson::JsonObject' {aka 'class ArduinoJson6191_F1::ObjectRef'} has no member named 'printTo'
  218 |       json.printTo(tmpBuff, sizeof(tmpBuff));
      |            ^~~~~~~
src/main.cpp:221:12: error: 'ArduinoJson::JsonObject' {aka 'class ArduinoJson6191_F1::ObjectRef'} has no member named 'printTo'
  221 |       json.printTo(configFile);
      |            ^~~~~~~
src/main.cpp: In function 'void loop()':
src/main.cpp:284:28: warning: conversion lacks type at end of format [-Wformat=]
  284 |         sprintf(myValue, "%l", results.value);
      |                            ^
src/main.cpp:284:26: warning: too many arguments for format [-Wformat-extra-args]
  284 |         sprintf(myValue, "%l", results.value);
      |                          ^~~~
src/common.cpp: In function 'long unsigned int StrToUL(String)':
src/common.cpp:9:21: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
    9 |   for (int i = 0; i < inputString.length(); i++)
      |                   ~~^~~~~~~~~~~~~~~~~~~~~~
src/common.cpp: In function 'bool writeDataFile(const char*, uint16_t*, int)':
src/common.cpp:27:7: warning: 'SPIFFS' is deprecated: SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
   27 |   if (SPIFFS.exists(fName))
      |       ^~~~~~
In file included from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/CertStoreBearSSL.h:26,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:30,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecure.h:23,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiServerSecure.h:20,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:41,
                 from src/globals.h:53,
                 from src/common.cpp:1:
/home/dtshl/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/FS.h:275:15: note: declared here
  275 | extern fs::FS SPIFFS __attribute__((deprecated("SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems.")));
      |               ^~~~~~
src/common.cpp:30:5: warning: 'SPIFFS' is deprecated: SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
   30 |     SPIFFS.remove(fName);
      |     ^~~~~~
In file included from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/CertStoreBearSSL.h:26,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:30,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecure.h:23,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiServerSecure.h:20,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:41,
                 from src/globals.h:53,
                 from src/common.cpp:1:
/home/dtshl/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/FS.h:275:15: note: declared here
  275 | extern fs::FS SPIFFS __attribute__((deprecated("SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems.")));
      |               ^~~~~~
src/common.cpp:33:15: warning: 'SPIFFS' is deprecated: SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
   33 |   File file = SPIFFS.open(fName, "w");
      |               ^~~~~~
In file included from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/CertStoreBearSSL.h:26,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:30,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecure.h:23,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiServerSecure.h:20,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:41,
                 from src/globals.h:53,
                 from src/common.cpp:1:
/home/dtshl/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/FS.h:275:15: note: declared here
  275 | extern fs::FS SPIFFS __attribute__((deprecated("SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems.")));
      |               ^~~~~~
src/common.cpp: In function 'uint16_t readDataFile(char*, uint16_t*)':
src/common.cpp:68:8: warning: 'SPIFFS' is deprecated: SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
   68 |   if (!SPIFFS.exists(fName))
      |        ^~~~~~
In file included from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/CertStoreBearSSL.h:26,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:30,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecure.h:23,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiServerSecure.h:20,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:41,
                 from src/globals.h:53,
                 from src/common.cpp:1:
/home/dtshl/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/FS.h:275:15: note: declared here
  275 | extern fs::FS SPIFFS __attribute__((deprecated("SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems.")));
      |               ^~~~~~
src/common.cpp:74:21: warning: 'SPIFFS' is deprecated: SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
   74 |   File IRconfigFile=SPIFFS.open(fName,"r");
      |                     ^~~~~~
In file included from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/CertStoreBearSSL.h:26,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:30,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecure.h:23,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiServerSecure.h:20,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:41,
                 from src/globals.h:53,
                 from src/common.cpp:1:
/home/dtshl/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/FS.h:275:15: note: declared here
  275 | extern fs::FS SPIFFS __attribute__((deprecated("SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems.")));
      |               ^~~~~~
Compiling .pio/build/d1_mini/lib472/ESP8266WiFi/ESP8266WiFiGeneric.cpp.o
src/mqtt.cpp: In function 'void MQTTcallback(char*, byte*, unsigned int)':
src/mqtt.cpp:49:9: warning: 'SPIFFS' is deprecated: SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
   49 |     if (SPIFFS.exists("/config.json"))
      |         ^~~~~~
In file included from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/CertStoreBearSSL.h:26,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:30,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecure.h:23,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiServerSecure.h:20,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:41,
                 from src/globals.h:53,
                 from src/mqtt.cpp:1:
/home/dtshl/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/FS.h:275:15: note: declared here
  275 | extern fs::FS SPIFFS __attribute__((deprecated("SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems.")));
      |               ^~~~~~
src/mqtt.cpp:51:7: warning: 'SPIFFS' is deprecated: SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
   51 |       SPIFFS.remove("/config.json");
      |       ^~~~~~
In file included from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/CertStoreBearSSL.h:26,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:30,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecure.h:23,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiServerSecure.h:20,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:41,
                 from src/globals.h:53,
                 from src/mqtt.cpp:1:
/home/dtshl/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/FS.h:275:15: note: declared here
  275 | extern fs::FS SPIFFS __attribute__((deprecated("SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems.")));
      |               ^~~~~~
src/mqtt.cpp:63:17: warning: 'SPIFFS' is deprecated: SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
   63 |       Dir dir = SPIFFS.openDir("/");
      |                 ^~~~~~
In file included from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/CertStoreBearSSL.h:26,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:30,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecure.h:23,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiServerSecure.h:20,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:41,
                 from src/globals.h:53,
                 from src/mqtt.cpp:1:
/home/dtshl/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/FS.h:275:15: note: declared here
  275 | extern fs::FS SPIFFS __attribute__((deprecated("SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems.")));
      |               ^~~~~~
src/mqtt.cpp:73:7: warning: 'SPIFFS' is deprecated: SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
   73 |       SPIFFS.info(fs_info);
      |       ^~~~~~
In file included from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/CertStoreBearSSL.h:26,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h:30,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiClientSecure.h:23,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/WiFiServerSecure.h:20,
                 from /home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:41,
                 from src/globals.h:53,
                 from src/mqtt.cpp:1:
/home/dtshl/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/FS.h:275:15: note: declared here
  275 | extern fs::FS SPIFFS __attribute__((deprecated("SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems.")));
      |               ^~~~~~
src/mqtt.cpp:109:61: error: no matching function for call to 'ESP8266HTTPUpdate::update(String&)'
  109 |     t_httpUpdate_return ret = ESPhttpUpdate.update(msgString);
      |                                                             ^
In file included from src/globals.h:66,
                 from src/mqtt.cpp:1:
/home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266httpUpdate/src/ESP8266httpUpdate.h:114:25: note: candidate: 't_httpUpdate_return ESP8266HTTPUpdate::update(WiFiClient&, const String&, const String&)'
  114 |     t_httpUpdate_return update(WiFiClient& client, const String& url, const String& currentVersion = "");
      |                         ^~~~~~
/home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266httpUpdate/src/ESP8266httpUpdate.h:114:25: note:   candidate expects 3 arguments, 1 provided
/home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266httpUpdate/src/ESP8266httpUpdate.h:115:25: note: candidate: 't_httpUpdate_return ESP8266HTTPUpdate::update(WiFiClient&, const String&, uint16_t, const String&, const String&)'
  115 |     t_httpUpdate_return update(WiFiClient& client, const String& host, uint16_t port, const String& uri = "/",
      |                         ^~~~~~
/home/dtshl/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266httpUpdate/src/ESP8266httpUpdate.h:115:25: note:   candidate expects 5 arguments, 1 provided
src/mqtt.cpp:184:19: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
  184 |     for (int i=0;i< msgLen;i++)
      |                  ~^~~~~~~~
src/mqtt.cpp:299:21: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
  299 |       for (int i=0;i< msgLen;i++)
      |                    ~^~~~~~~~
src/mqtt.cpp:8:7: warning: unused variable 'i' [-Wunused-variable]
    8 |   int i = 0;
      |       ^
*** [.pio/build/d1_mini/src/main.cpp.o] Error 1
*** [.pio/build/d1_mini/src/mqtt.cpp.o] Error 1

How to proceed from here? Especially the SPIFFS warnings make me wonder.

DerEmder avatar Feb 10 '22 20:02 DerEmder