Forum Replies Created

Viewing 10 posts - 16 through 25 (of 25 total)
  • Author
    Posts
  • tpapas
    Participant

      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 🙂

      tpapas
      Participant

        Starting!
        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

        )

        tpapas
        Participant

          -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?

          tpapas
          Participant

            I 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?

            tpapas
            Participant

              It doesn’t compile, I get an error : exit status 1
              stray ‘\342’ in program

              tpapas
              Participant

                -try to put inside F(“string”) the serial string

                I don’t understand Renzo?!

                tpapas
                Participant

                  Also 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!

                  tpapas
                  Participant

                    Sorry 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?

                    tpapas
                    Participant

                      Renzo, 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.

                      tpapas
                      Participant

                        Thank 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()
                        {

                        }

                      Viewing 10 posts - 16 through 25 (of 25 total)