Go Down

Topic: Error compiling for board NodeMCU 1.0 (ESP-12E Module). (Read 112 times) previous topic - next topic

Arduinogenie

Hallo,

kann mir jemand bei dieser Fehlermeldung helfen?
Hier nochmal das restliche Zeugs.

Arduino: 1.6.9 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, 115200, 4M (3M SPIFFS)"

sketch\EMailSoftware.cpp: In function 'int sendEmail()':

EMailSoftware.cpp:528: error: invalid conversion from 'size_t {aka unsigned int}' to 'EMAILSTATUS' [-fpermissive]

       rv = Serial.println(F("EHLO 139.13.210.77"));

                                                  ^

EMailSoftware.cpp:563: error: invalid conversion from 'size_t {aka unsigned int}' to 'EMAILSTATUS' [-fpermissive]
 
       rv = Serial.println(F("EHLO 139.13.210.77"));

                                                  ^

EMailSoftware.cpp:588: error: invalid conversion from 'size_t {aka unsigned int}' to 'EMAILSTATUS' [-fpermissive]

       rv = Serial.println(F("EHLO 139.13.210.77"));

                                                  ^

EMailSoftware.cpp:613: error: invalid conversion from 'size_t {aka unsigned int}' to 'EMAILSTATUS' [-fpermissive]

       rv = Serial.println(F("EHLO 139.13.210.77"));

                                                  ^

EMailSoftware.cpp:638: error: invalid conversion from 'size_t {aka unsigned int}' to 'EMAILSTATUS' [-fpermissive]

       rv = Serial.println(F("EHLO 139.13.210.77"));

                                                  ^

EMailSoftware.cpp:663: error: invalid conversion from 'size_t {aka unsigned int}' to 'EMAILSTATUS' [-fpermissive]

       rv = Serial.println(F("EHLO 139.13.210.77"));

                                                  ^

EMailSoftware.cpp:688: error: invalid conversion from 'size_t {aka unsigned int}' to 'EMAILSTATUS' [-fpermissive]

       rv = Serial.println(F("EHLO 139.13.210.77"));

                                                  ^

EMailSoftware.cpp:713: error: invalid conversion from 'size_t {aka unsigned int}' to 'EMAILSTATUS' [-fpermissive]

       rv = Serial.println(F("EHLO 139.13.210.77"));

                                                  ^

EMailSoftware.cpp:738: error: invalid conversion from 'size_t {aka unsigned int}' to 'EMAILSTATUS' [-fpermissive]

       rv = Serial.println(F("EHLO 139.13.210.77"));

                                                  ^

EMailSoftware.cpp:763: error: invalid conversion from 'size_t {aka unsigned int}' to 'EMAILSTATUS' [-fpermissive]

       rv = Serial.println(F("EHLO 139.13.210.77"));

                                                  ^

sketch\EMailSoftware.cpp: In function 'void PUSH_AND_SEND()':

EMailSoftware.cpp:821: error: 'sendingInProgress' was not declared in this scope

       sendingInProgress = true;

       ^

exit status 1
invalid conversion from 'size_t {aka unsigned int}' to 'EMAILSTATUS' [-fpermissive]

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

combie

Quote
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Mache das doch mal bitte!



> rv = Serial.println(F("EHLO 139.13.210.77"));
Das zählen der Ausgabezeichen schlägt fehl, weil die Typedefinitionen nicht stimmig sind.
Aber was da nicht stimmt?
KA, denn der Code ist geheim.
Der Pessimist sieht die Wolke vor der Sonne.
Der Optimist sieht die Sonne hinter der Wolke.

Mantra: Die Sonne scheint immer!

amithlon

Hallo,

size_t ist unsigned int. Wie rc deklariert ist, verrät sein Code ja nicht.
Wenn der Sketch ursprünglich vom es vom AVR stammt, wäre unsigned int ein uint16_t, auf dem ESP aber ein uint32_t.
Warten wir also ab, ob wir noch erfahren, wer oder was EMAILSTATUS ist.

Gruß aus Berlin
Michael

michael_x

Quote
Warten wir also ab, ob wir noch erfahren, wer oder was EMAILSTATUS ist.
EMAILSTATUS ist offensichtlich EMAILSTATUS,  aber nichts was zum Datentyp size_t passt.
Ob nun die Variable rv den falschen Datentyp hat, oder ob sie besser nicht als Rückgabe-Wert für println verwendet würde, kann nur Arduinogenie wissen

Go Up