Replies: 9 comments 10 replies
-
It bothers the topic owner and other people that talking 2 years ago. |
Beta Was this translation helpful? Give feedback.
-
The examples are well tested and all are ok. You have to check your installed libraries why it can't compile? The You also have to read and interpret the compilation error. At least you should remove all Ethernet libraries from your Arduino libraries folder and try again. |
Beta Was this translation helpful? Give feedback.
-
I have checked it and found the error only existed in Arduino IDE due to the compiler. You have to change the order of include files by include the #include <ESP_Mail_Client.h>
// https://github.com/arduino-libraries/Ethernet
#include <Ethernet.h> to // https://github.com/arduino-libraries/Ethernet
#include <Ethernet.h>
#include <ESP_Mail_Client.h> This is the way to make some macro that used in this library works under the Arduino IDE. |
Beta Was this translation helpful? Give feedback.
-
dear @mobizt
|
Beta Was this translation helpful? Give feedback.
-
Now I trying an example.
I don't think ethernet initialization will happen. In my other code that works on the same HW, I have in setup() |
Beta Was this translation helpful? Give feedback.
-
Sorry, no INT pin and it is not necessary. |
Beta Was this translation helpful? Give feedback.
-
To initialize the Ethernet client, you must use chip enable/seclect pin instead.
|
Beta Was this translation helpful? Give feedback.
-
The interrupt pin of your module is not used in SPI bus, you should pull-up it to disable your module interrupt. |
Beta Was this translation helpful? Give feedback.
-
OK. Got it but still can't move next. I keep getting -400 error. Over Wifi, your library send email for the first time. Over ethernet not.
|
Beta Was this translation helpful? Give feedback.
-
Dear @mobizt , you lock the discussion about ethernet problem.
Apparently it was misunderstood.
Well, that's exactly how I used the example without any modification. Ethernet.h is defined there, as you write, so there is no need to define a class, even so there is a compilation error. Only then, when the compilation failed, I tried to define the class, but the compilation is with the same error.
Then there is an error somewhere, I don't know where, why the example cannot be compiled.
Beta Was this translation helpful? Give feedback.
All reactions