Fehler Compiler

Da wo ich den roten Strich herum gezogen habe drauf klicken.
Da müsstest du auch drin gewesen sein, als du das Package für den Nano Esp installiert hast!

Das habe ich geladen

und erhalte folgender Fehler

C:\Daten\Arduino-Projekt\TonUINO\TonUINO-TNG\src\chip_card.cpp:51:66: error: 'printStatusCode' function uses 'auto' type specifier without trailing return type
 auto printStatusCode(MFRC522& mfrc522, MFRC522::StatusCode status) {
                                                                  ^
C:\Daten\Arduino-Projekt\TonUINO\TonUINO-TNG\src\chip_card.cpp:51:66: note: deduced return type only available with -std=c++14 or -std=gnu++14
C:\Daten\Arduino-Projekt\TonUINO\TonUINO-TNG\src\chip_card.cpp:58:65: error: 'printPiccType' function uses 'auto' type specifier without trailing return type
 auto printPiccType(MFRC522& mfrc522, MFRC522::PICC_Type piccType) {
                                                                 ^
C:\Daten\Arduino-Projekt\TonUINO\TonUINO-TNG\src\chip_card.cpp:58:65: note: deduced return type only available with -std=c++14 or -std=gnu++14
exit status 1

Compilation error: 'printStatusCode' function uses 'auto' type specifier without trailing return type

Das hattest du gemacht?

Wenn du das Boardpackage änderst/(neu) installierst musst du noch die ‚platform.local.txt‘ (neu) kopieren. In das dem Boardpackage entsprechende Verzeichnis. Lt. readme.md unter Windows:

C:\Users\<Benutzer>\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-arduino.5

Ja das habe ich.

Noch einmal versucht jetzt das =

C:\Daten\Arduino-Projekt\TonUINO\TonUINO-TNG\src\chip_card.cpp:51:66: error: 'printStatusCode' function uses 'auto' type specifier without trailing return type
 auto printStatusCode(MFRC522& mfrc522, MFRC522::StatusCode status) {
                                                                  ^
C:\Daten\Arduino-Projekt\TonUINO\TonUINO-TNG\src\chip_card.cpp:51:66: note: deduced return type only available with -std=c++14 or -std=gnu++14
C:\Daten\Arduino-Projekt\TonUINO\TonUINO-TNG\src\chip_card.cpp:58:65: error: 'printPiccType' function uses 'auto' type specifier without trailing return type
 auto printPiccType(MFRC522& mfrc522, MFRC522::PICC_Type piccType) {
                                                                 ^
C:\Daten\Arduino-Projekt\TonUINO\TonUINO-TNG\src\chip_card.cpp:58:65: note: deduced return type only available with -std=c++14 or -std=gnu++14
C:\Daten\Arduino-Projekt\TonUINO\TonUINO-TNG\src\webservice.cpp: In member function 'void Webservice::onOtaUpload(AsyncWebServerRequest*, String, size_t, uint8_t*, size_t, bool)':
C:\Daten\Arduino-Projekt\TonUINO\TonUINO-TNG\src\webservice.cpp:870:7: error: 'StreamString' was not declared in this scope
       StreamString str;
       ^~~~~~~~~~~~
C:\Daten\Arduino-Projekt\TonUINO\TonUINO-TNG\src\webservice.cpp:870:7: note: suggested alternative: 'Stream'
       StreamString str;
       ^~~~~~~~~~~~
       Stream
C:\Daten\Arduino-Projekt\TonUINO\TonUINO-TNG\src\webservice.cpp:871:25: error: 'str' was not declared in this scope
       Update.printError(str);
                         ^~~
C:\Daten\Arduino-Projekt\TonUINO\TonUINO-TNG\src\webservice.cpp:871:25: note: suggested alternative: 'std'
       Update.printError(str);
                         ^~~
                         std
C:\Daten\Arduino-Projekt\TonUINO\TonUINO-TNG\src\webservice.cpp:893:9: error: 'StreamString' was not declared in this scope
         StreamString str;
         ^~~~~~~~~~~~
C:\Daten\Arduino-Projekt\TonUINO\TonUINO-TNG\src\webservice.cpp:893:9: note: suggested alternative: 'Stream'
         StreamString str;
         ^~~~~~~~~~~~
         Stream
C:\Daten\Arduino-Projekt\TonUINO\TonUINO-TNG\src\webservice.cpp:894:27: error: 'str' was not declared in this scope
         Update.printError(str);
                           ^~~
C:\Daten\Arduino-Projekt\TonUINO\TonUINO-TNG\src\webservice.cpp:894:27: note: suggested alternative: 'std'
         Update.printError(str);
                           ^~~
                           std
exit status 1

Compilation error: 'printStatusCode' function uses 'auto' type specifier without trailing return type

Hast du danach auch die IDE neu gestartet? Ich glaube, die Datei platform.local.txt wird nur beim Starten gelesen.

Ja habe ich und trotzdem den Fehler erhalten

C:\Daten\Arduino-Projekt\TonUINO\TonUINO-TNG\src\chip_card.cpp:51:66: error: 'printStatusCode' function uses 'auto' type specifier without trailing return type
 auto printStatusCode(MFRC522& mfrc522, MFRC522::StatusCode status) {
                                                                  ^
C:\Daten\Arduino-Projekt\TonUINO\TonUINO-TNG\src\chip_card.cpp:51:66: note: deduced return type only available with -std=c++14 or -std=gnu++14
C:\Daten\Arduino-Projekt\TonUINO\TonUINO-TNG\src\chip_card.cpp:58:65: error: 'printPiccType' function uses 'auto' type specifier without trailing return type
 auto printPiccType(MFRC522& mfrc522, MFRC522::PICC_Type piccType) {
                                                                 ^
C:\Daten\Arduino-Projekt\TonUINO\TonUINO-TNG\src\chip_card.cpp:58:65: note: deduced return type only available with -std=c++14 or -std=gnu++14
C:\Daten\Arduino-Projekt\TonUINO\TonUINO-TNG\src\webservice.cpp: In member function 'void Webservice::onOtaUpload(AsyncWebServerRequest*, String, size_t, uint8_t*, size_t, bool)':
C:\Daten\Arduino-Projekt\TonUINO\TonUINO-TNG\src\webservice.cpp:870:7: error: 'StreamString' was not declared in this scope
       StreamString str;
       ^~~~~~~~~~~~
C:\Daten\Arduino-Projekt\TonUINO\TonUINO-TNG\src\webservice.cpp:870:7: note: suggested alternative: 'Stream'
       StreamString str;
       ^~~~~~~~~~~~
       Stream
C:\Daten\Arduino-Projekt\TonUINO\TonUINO-TNG\src\webservice.cpp:871:25: error: 'str' was not declared in this scope
       Update.printError(str);
                         ^~~
C:\Daten\Arduino-Projekt\TonUINO\TonUINO-TNG\src\webservice.cpp:871:25: note: suggested alternative: 'std'
       Update.printError(str);
                         ^~~
                         std
C:\Daten\Arduino-Projekt\TonUINO\TonUINO-TNG\src\webservice.cpp:893:9: error: 'StreamString' was not declared in this scope
         StreamString str;
         ^~~~~~~~~~~~
C:\Daten\Arduino-Projekt\TonUINO\TonUINO-TNG\src\webservice.cpp:893:9: note: suggested alternative: 'Stream'
         StreamString str;
         ^~~~~~~~~~~~
         Stream
C:\Daten\Arduino-Projekt\TonUINO\TonUINO-TNG\src\webservice.cpp:894:27: error: 'str' was not declared in this scope
         Update.printError(str);
                           ^~~
C:\Daten\Arduino-Projekt\TonUINO\TonUINO-TNG\src\webservice.cpp:894:27: note: suggested alternative: 'std'
         Update.printError(str);
                           ^~~
                           std
exit status 1

Compilation error: 'printStatusCode' function uses 'auto' type specifier without trailing return type

Aber vielleicht springen wir nicht immerzu hin und her. Oben hattest du doch geschrieben, dass du mit dem Uploader ein Programm aufgespielt hast und auch schon ein Log hattest. Jetzt versuche doch mal, das zum Laufen zu bekommen.

Als erstes musst du das WLAN konfigurieren, d.h. die SSID und das Passwort eingeben. Dazu verbindest du dich mit dem Smartphone (oder Computer) per WLAN mit der SSID TonUINO (ohne Passwort) und dann kannst du die Webseite des TonUINO über http://192.168.4.1 erreichen. Dann kannst du damit die SSID von deinem Router und das Passort eingeben. Eine Anleitung von @NoBl findest du hier.

Hallo habe es jetzt mit dem neuen TonUINO Uploader getestet und das ist das Ergebniss

downloaded https://tonuino.github.io/TonUINO-TNG/TonUINO_Esp32_5/firmware.bin to C:\Users\RUALB\AppData\Local\Temp\tmp_lydadt2\firmware.bin

#################################################################################

C:\Users\RUALB\AppData\Local\Temp\_MEI62722\dfu-util --device 0x2341:0x0070 -D C:\Users\RUALB\AppData\Local\Temp\tmp_lydadt2\firmware.bin -Q

#################################################################################
dfu-util 0.11-arduino4

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2021 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

Opening DFU capable USB device...
Device ID 2341:0070
Device DFU version 0101
Claiming USB DFU Interface...
Setting Alternate Interface #0 ...
Determining device status...
DFU state(2) = dfuIDLE, status(0) = No error condition is present
DFU mode device DFU version 0101
Device returned transfer size 4096
Copying data from PC to DFU device

Download	[                         ]   0%            0 bytes
Download	[=                        ]   4%        61440 bytes
Download	[=                        ]   4%        65536 bytes
Download	[==                       ]   8%       118784 bytes
Download	[==                       ]   9%       139264 bytes
Download	[===                      ]  12%       176128 bytes
Download	[====                     ]  16%       237568 bytes
Download	[====                     ]  16%       241664 bytes
Download	[=====                    ]  20%       294912 bytes
Download	[=====                    ]  22%       335872 bytes
Download	[======                   ]  24%       352256 bytes
Download	[=======                  ]  28%       409600 bytes
Download	[========                 ]  32%       471040 bytes
Download	[========                 ]  34%       507904 bytes
Download	[=========                ]  36%       528384 bytes
Download	[==========               ]  40%       585728 bytes
Download	[==========               ]  40%       598016 bytes
Download	[===========              ]  44%       647168 bytes
Download	[===========              ]  46%       679936 bytes
Download	[============             ]  48%       704512 bytes
Download	[=============            ]  52%       761856 bytes
Download	[=============            ]  53%       782336 bytes
Download	[==============           ]  56%       819200 bytes
Download	[==============           ]  58%       860160 bytes
Download	[===============          ]  60%       880640 bytes
Download	[================         ]  64%       937984 bytes
Download	[================         ]  65%       954368 bytes
Download	[=================        ]  68%       995328 bytes
Download	[=================        ]  71%      1052672 bytes
Download	[==================       ]  72%      1056768 bytes
Download	[===================      ]  76%      1114112 bytes
Download	[===================      ]  77%      1126400 bytes
Download	[====================     ]  80%      1171456 bytes
Download	[====================     ]  83%      1224704 bytes
Download	[=====================    ]  84%      1228800 bytes
Download	[======================   ]  88%      1290240 bytes
Download	[======================   ]  90%      1318912 bytes
Download	[=======================  ]  92%      1347584 bytes
Download	[=======================  ]  95%      1392640 bytes
Download	[======================== ]  96%      1404928 bytes
Download	[=========================] 100%      1458736 bytes
Download done.
DFU state(7) = dfuMANIFEST, status(0) = No error condition is present
DFU state(2) = dfuIDLE, status(0) = No error condition is present
Done!


#################################################################################

Finished success

Weiter mache ich dann in den Nächsten Tagen

Sofern ich Zeit habe und Versuche es dann mit dem verbinden via App oder PC

Danke für deine Geduld

Opa Dodo

Hier noch das Console Log

Opening COM4 at 115200 baudCom to DFPlayer broken
track_count: 0
enter Idle
btn/cmd: start/start
enqueue mp3 262 0
isPlaying: 1
play mp3 262

So wie ich getestet habe funktioniert der ESP32 Nano jetzt den Upload habe ich nur mit dem Online-Uploader geschaft!

Wie kann ich die constants.hpp bearbeiten?

Und wie komme ich in das Webinterface

Danke fürs helfen und die Typs

Opa Dodo

Mit dem online Upload gar nicht!
Dazu musst die Arduino IDE oder platformio benutzen!
Zur IDE hatte dir @NoBl hier https://discourse.voss.earth/t/fehlermeldung-beim-upload-versuch/14338/18 schonmal eine Anleitung geschrieben:

Zusammenfassung

Da das aber bei dir mit der IDE, zumindest für den ESP Nano, bisher nicht ganz zufriedenstellend funktioniert (warum konnten wir ja leider nicht klären) lege ich dir platformio ans Herz! Eine Anletung dazu hat @Gute_Laune weiter oben schon verlinkt.

Dazu hatte @Boerge1 ebenfalls weiter oben auch schon etwas geschrieben.

Zusammenfassung

Was willst du denn da ändern?

Bei dem Uploader gibt es die Standardkonfigurationen (auch mit vollem Feature Umfang). Vielleicht ist das, das schon richtige für dich.