Forum Replies Created

Viewing 15 posts - 946 through 960 (of 1,006 total)
  • Author
    Posts
  • in reply to: EMail distribution list – more than one recipient #6575
    Renzo Mischianti
    Keymaster

      Hi Mauro,

      now the library with this features is in the official branch, and released on Arduino Library manager.

       

      Bye Renzo

      in reply to: Empty attachment #6535
      Renzo Mischianti
      Keymaster

        Thanks to all,

        I’m going to release a new library version with this fix and new distribution list features.

        Thanks again Renzo

        in reply to: Empty attachment #6531
        Renzo Mischianti
        Keymaster

          I check on the web and seems there are a lot of problems with Outlook,

          can you try to send the txt file directly from gmail and check in outlook?

           

          Bye Renzo

          in reply to: Empty attachment #6515
          Renzo Mischianti
          Keymaster

            Try to send the attach via classic email from gmail or similar.

            I think the problem is outlook.

             

            in reply to: Empty attachment #6512
            Renzo Mischianti
            Keymaster

              Hi Michael,
              there is an error on index of txt file, so the mime type is not set

              
              				fileDescriptor[0].filename = F("test.txt");
              				fileDescriptor[0].url = F("/test.txt");
              				fileDescriptor[1].mime = "text/plain";
              				fileDescriptor[0].storageType =
              						EMailSender::EMAIL_STORAGE_TYPE_SD;
              
              

              I rewrite the sketch and put some example, I test It with SPIFFS and work correctly

              I attach the sketch with all sampe file.

              Bye Renzo

              Attachments:
              You must be logged in to view attached files.
              in reply to: Empty attachment #6508
              Renzo Mischianti
              Keymaster

                Hi Michael,

                I tested now my WeMos D1 mini, and the txt attachment works correctly.

                But It’s strange because if the file It’s 80byte mean that there are 80 character, so It isn’t empty.

                Can you send me your code PLZ.

                Bye Renzo

                 

                Attachments:
                You must be logged in to view attached files.
                in reply to: Empty attachment #6497
                Renzo Mischianti
                Keymaster

                  Hi Norbert,

                  If the file It’s 80byte mean the there are almost 80 characters. It’s very strange, try to change extension, like xml or similar.

                  Please give me a feedback.

                  Bye Renzo

                  in reply to: Is it possible to send an object with LoRa E32 device? #6458
                  Renzo Mischianti
                  Keymaster

                    Hi Ludophot,

                    String isn’t a fixed size variable, so you can’t predeterminate the size of the sctrucure, try to copy String to fixed size char

                    char msg[10];
                    string mystr = "hello";
                    
                    strcpy(msg, mystr.c_str());

                     

                    Give me a feedback..

                     

                    Bye Renzo

                    in reply to: EMail distribution list – more than one recipient #6457
                    Renzo Mischianti
                    Keymaster

                      Hi Mauro,

                      to remove debug message you must comment this line

                      #define EMAIL_SENDER_DEBUG

                      If you have a better think about the structure write here without problem.

                       

                      Bye Renzo

                       

                       

                      in reply to: Is it possible to send an object with LoRa E32 device? #6440
                      Renzo Mischianti
                      Keymaster

                        Hi Ludophot,

                        yes, I think you can refer this post to create the array of element/structure

                        More than one pcf8574 expander

                         

                        I think It’s quite difficult to lost packet, because E32 have 512byte of buffer and the max packet size is 58byte, and when you read the buffer you remove the messages from that, so you can grab 512/58 >= 8 messages before read the buffer.

                        I’m quite sure that you read the message in less than millisecs.

                        Bye Renzo

                        in reply to: Is it possible to send an object with LoRa E32 device? #6424
                        Renzo Mischianti
                        Keymaster

                          Hi Ludopoth,

                          first you can’t create a structure with pointer

                          
                          struct Badge_Transmition{
                          const char *type=NULL;
                          String *message = NULL;
                          };
                          

                          but size must be fixed

                          
                          struct Badge_Transmition{
                          char[10] type;
                          char[20] message;
                          };
                          

                          the pointer size is about 2byte, but the content is in another area.

                          The receive device must have the same fixed size structure.

                          The rest of the code seems correct.

                          Give me a feedback Bye Renzo.

                          in reply to: Is it possible to send an object with LoRa E32 device? #6404
                          Renzo Mischianti
                          Keymaster

                            Hi Ludophot,

                            you can send a structure that in C is the equivalent of an object.

                            For example

                            
                                struct Message {
                                    char type[5] = "TEMP";
                                    char message[8] = "Kitchen";
                                    byte temperature[4];
                                } message;
                             
                                *(float*)(message.temperature) = 19.2;
                             
                                ResponseStatus rs = e32ttl.sendFixedMessage(0,3,4,&message, sizeof(Message));
                                Serial.println(rs.getResponseDescription());
                            
                            

                            I think this is what you need.

                            you can find more information in this article, with a complete sender sketch and receiver.

                            Ebyte LoRa E32 device for Arduino, esp32 or esp8266: power saving and sending structured data Part 5

                            pay attention to the receive of part of the strucure, very usefully to manage different type of object.

                             

                            Bye Renzo

                            in reply to: EMail distribution list – more than one recipient #6390
                            Renzo Mischianti
                            Keymaster

                              Hi Mauro,

                              sorry if I response so late, but I have a lot of think to follow…

                              I implement multiple recipient, you can find a beta version on branch

                              Github

                              You can use like so, to sent do 3 email

                              
                                  EMailSender::EMailMessage message;
                                  message.subject = "Soggetto";
                                  message.message = "Ciao come stai
                              io bene.
                              www.mischianti.org";
                              
                                  const char* arrayOfEmail[] = {"mischianti@gmail.com", "smtp.mischianti@gmail.com", "renzo.mischianti@gmail.com"};
                                  EMailSender::Response resp = emailSend.send(arrayOfEmail, 3, message);
                              

                              or to send to 2 email as principal and 1 as CC

                              
                                  EMailSender::EMailMessage message;
                                  message.subject = "Soggetto";
                                  message.message = "Ciao come stai
                              io bene.
                              www.mischianti.org";
                              
                                  const char* arrayOfEmail[] = {"mischianti@gmail.com", "smtp.mischianti@gmail.com", "renzo.mischianti@gmail.com"};
                                  EMailSender::Response resp = emailSend.send(arrayOfEmail, 2, 1, message);
                              
                              

                              or to sent first to principal one to cc and one to CCn

                              
                                  EMailSender::EMailMessage message;
                                  message.subject = "Soggetto";
                                  message.message = "Ciao come stai
                              io bene.
                              www.mischianti.org";
                              
                                  const char* arrayOfEmail[] = {"mischianti@gmail.com", "smtp.mischianti@gmail.com", "renzo.mischianti@gmail.com"};
                                  EMailSender::Response resp = emailSend.send(arrayOfEmail, 1, 1, 1, message);
                              
                              

                              Give me a feedback…

                              Bye Renzo

                              in reply to: EMailSender-master Library problem to manage email variable #6261
                              Renzo Mischianti
                              Keymaster

                                Hi Adnan,

                                sorry if I response only now.

                                You can use a char array pointer

                                const char* emailToSend = "renzo.mischianti@gmail.com";
                                EMailSender::Response resp = emailSend.send(emailToSend, message);

                                I think you use a String variable for myemail, change type.

                                Bye Renzo

                                in reply to: EMailSender new Line Character in the message #6209
                                Renzo Mischianti
                                Keymaster

                                  I think that I undestand the problem.
                                  In my library I try to give all the possibility, and as default the body of email si in HTML format, for example you can write a text like so

                                      EMailSender::EMailMessage message;
                                      message.subject = "Soggetto";
                                      message.message = "<img src='http://mischianti.org/wp-content/uploads/2020/01/logo256.jpg'/><br><br>Ciao come stai<br>io bene.<br>Login set ok;<br>This is my link <a href='mischianti.org'>Mischianti's Blog</a>";
                                  
                                  the result is an email like this

                                  but if you want sent a simple email in TEXT format you must specify the correct mime type, so you must write an email like so

                                      EMailSender::EMailMessage message;
                                      message.subject = "Soggetto";
                                      message.message = "Ciao come stai\nio bene.\nLogin set ok;";
                                      message.mime = MIME_TEXT_PLAIN;
                                  

                                   

                                  And in TEXT format line feed and carraige return work fine.

                                  Give me a feedback, but I think the problem is this, you can try to use text line feed with HTML format.

                                  Bye Renzo

                                Viewing 15 posts - 946 through 960 (of 1,006 total)