Forum Replies Created
-
AuthorPosts
-
22 January 2021 at 23:56 in reply to: Using EMail Sender library with Arduino UNO Ethernet shield with Ethernet.h library #9513
Renzo, thank you for the help and the replies of course, I ‘m the least expert in this of course, but it doesn’t seem to me that its a memory problem. It does compile and running fine always producing the same results…
But… to satisfy mine and your curiosity, I will go out and get an Arduino Mega and try it there too. No harm done in that 🙂22 January 2021 at 15:28 in reply to: Using EMail Sender library with Arduino UNO Ethernet shield with Ethernet.h library #9499Starting!
IP address 192.168.1.235
ONLY ONE RECIPIENTmiltiple destination and attachments
Insecure client:0
220 SG ESMTP service ready at ismtpd0005p1
Sending status:
0)
22 January 2021 at 15:20 in reply to: Using EMail Sender library with Arduino UNO Ethernet shield with Ethernet.h library #9497-The structure of static IP use some memory also.
Yes it was just a suggestion since I ‘m using static anyway.
Ok, it did compile, and it gives the same exact result Renzo…
Starting!
IP address 192.168.1.235
Sending status:
0)
Could it be that (maybe) I have something wrong in the credentials? Is there any way to debug this?
22 January 2021 at 15:01 in reply to: Using EMail Sender library with Arduino UNO Ethernet shield with Ethernet.h library #9495I use static IP for the project anyway, maybe we can avoid all that by doing it in static…
Would that (maybe) give me more memory?
22 January 2021 at 14:58 in reply to: Using EMail Sender library with Arduino UNO Ethernet shield with Ethernet.h library #9494It doesn’t compile, I get an error : exit status 1
stray ‘\342’ in program22 January 2021 at 14:51 in reply to: Using EMail Sender library with Arduino UNO Ethernet shield with Ethernet.h library #9492-try to put inside F(“string”) the serial string
I don’t understand Renzo?!
20 January 2021 at 23:31 in reply to: Using EMail Sender library with Arduino UNO Ethernet shield with Ethernet.h library #9484Also keep in mind that I don’t use any encoding in my email address or password or api key! They ‘re copied and pasted from the sendgrid site!
20 January 2021 at 23:22 in reply to: Using EMail Sender library with Arduino UNO Ethernet shield with Ethernet.h library #9483Sorry Renzo … my bad! See I told you I’m a total newbie… The problem was that my serial monitor was set at 9600 baud so it couldn’t read… I set it now at 115200 and it did write :
Starting!
IP address 192.168.1.235
ONLY ONE RECIPIENTmiltiple destination and attachments
Insecure client:0
220 SG ESMTP service ready at ismtp
Sending status:
0)
Still no email sent though! So what do you see?
20 January 2021 at 22:49 in reply to: Using EMail Sender library with Arduino UNO Ethernet shield with Ethernet.h library #9481Renzo, thank you for the effort, yes now it compiled no problem
Sketch uses 20064 bytes (62%) of program storage space. Maximum is 32256 bytes.
Global variables use 1375 bytes (67%) of dynamic memory, leaving 673 bytes for local variables. Maximum is 2048 bytes.But the code I sent you above, doesn’t seem to do anything! Is it missing something!? Do I need to do something? It doesn’t prompt me for anything and of course it doesn’t send the email.
19 January 2021 at 20:08 in reply to: Using EMail Sender library with Arduino UNO Ethernet shield with Ethernet.h library #9471Thank you Renzo for the immediate reply.
I did the modification and it did compile.
I do get :
“Sketch uses 27308 bytes (84%) of program storage space. Maximum is 32256 bytes.
Global variables use 2004 bytes (97%) of dynamic memory, leaving 44 bytes for local variables. Maximum is 2048 bytes.
Low memory available, stability problems may occur. ”from the compiler!
I run it but it does absolutely nothing… What am I missing?!
Here’s the code :
#include “Arduino.h”
#include <SPI.h>
#include <Ethernet.h>
#include <EMailSender.h>// Enter a MAC address for your controller below.
// Newer Ethernet shields have a MAC address printed on a sticker on the shield
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };EMailSender emailSend(“my sendgrid API key”, “my sendgrid login pwd”, “my sendgrid login verified email”, “smtp.sendgrid.net”, 25);
void setup()
{
// Open serial communications and wait for port to open:
Serial.begin(115200);
while (!Serial) {}delay(2000);
Serial.println(“Starting!”);
// start the Ethernet connection:
if (Ethernet.begin(mac) == 0) {
Serial.println(“Failed to configure Ethernet using DHCP”);
while(1);
}
Serial.print(“IP address “);
Serial.println(Ethernet.localIP());EMailSender::EMailMessage message;
message.subject = “High Temperature in TX Site”;
message.message = “Please check the A/C unit<br>High temperature!<br>Thank you”;EMailSender::Response resp = emailSend.send(“my sendgrid login verified email”, message);
Serial.println(“Sending status: “);
Serial.println(resp.status);
Serial.println(resp.code);
Serial.println(resp.desc);
}void loop()
{}
-
AuthorPosts