Forum Replies Created
-
AuthorPosts
-
4 March 2022 at 15:59 in reply to: E220-900T22D receiver module restarts itself after 1000 bytes of transmission #19120
Azzzz!!! This is a giant bug.
Thanks, I’m going to fix it in all my libraries.Would you like to share your work? It seems very, very interesting and helpful for the people.
Bye Renzo
No Mike,
You must set the correct SMTP server and all the other parameters of your email provider.Hi Mike,
the example that I attach It’s a real example, but you must configure your provider.
Bye RenzoI attach a basic example but remember enc28j60 does not support SSL so you can’t use a service like Gmail.
Check this article
Send email with attachments (v2.x library): Arduino Ethernet – 1And there are a lot of topics about SendGrid configuration and similar.
Bye Renzo
Attachments:
You must be logged in to view attached files.4 March 2022 at 11:35 in reply to: E220-900T22D receiver module restarts itself after 1000 bytes of transmission #19108It’s strange, try to re-read the configuration stored, anche check if It’s correctly stored.
4 March 2022 at 09:25 in reply to: E220-900T22D receiver module restarts itself after 1000 bytes of transmission #19106Hi sup_arman,
you forget to close (and free) the structure container withrc.close()
command.// If something available if (e220ttl.available()>1) { // read the String message #ifdef ENABLE_RSSI ResponseStructContainer rc = e220ttl.receiveMessageRSSI(sizeof(Deneme)); struct Deneme d = *(Deneme*) rc.data; Serial.println(d.type); //e220ttl.flush(); //e220ttl.receiveMessageRSSI(sizeof(Deneme)); //e220ttl.cleanUARTBuffer(); //Serial.println(d.msg); //Serial.println(d.arman); #else ResponseStructContainer rc = e220ttl.receiveMessage(sizeof(Deneme)); struct Deneme d = *(Deneme*) rc.data; Serial.println(d.type); //e220ttl.flush(); //rc = e220ttl.receiveMessage(sizeof(Deneme)); //e220ttl.cleanUARTBuffer(); //Serial.println(d.msg); //Serial.println(d.arman); #endif // Is something goes wrong print error if (rc.status.code!=1){ Serial.println(rc.status.getResponseDescription()); }else{ // Print the data received Serial.println(rc.status.getResponseDescription()); //Serial.println(rc.data); //this was for string transmission only #ifdef ENABLE_RSSI Serial.print("RSSI: "); Serial.println(rc.rssi, DEC); #endif } rc.close(); }
Try
EMailSender emailSend(email_login.c_str(), email_password.c_str());
Bye Renzo
Hi Claudecate,
probably there are spaces added to the end of string to grow all byte array lengthTry something similar to
int writeStringToEEPROM(int addrOffset, const String &strToWrite) { byte len = strToWrite.length(); EEPROM.write(addrOffset, len); for (int i = 0; i < len; i++) { EEPROM.write(addrOffset + 1 + i, strToWrite[i]); } return addrOffset + 1 + len; } int readStringFromEEPROM(int addrOffset, String *strToRead) { int newStrLen = EEPROM.read(addrOffset); char data[newStrLen + 1]; for (int i = 0; i < newStrLen; i++) { data[i] = EEPROM.read(addrOffset + 1 + i); } data[newStrLen] = '\0'; *strToRead = String(data); return addrOffset + 1 + newStrLen; }
where the addrOffset is the start of eeprom and you can use String variable
String user = "ciccio"; String password = "passwd"; writeStringToEEPROM(0, user); writeStringToEEPROM(32, password);
and to read
String user; String password; readStringFromEEPROM(0, &user); readStringFromEEPROM(32, &password);
Bye Renzo
Ahhh ok..
Too late 😛Hi Claudacate,
I do a lot of tests (with core 2.7 and 3.0), but no problem with WeMos D1.Do you have to change some settings on EMailSenderKey?
Bye Renzo
Hi, claudcate,
try to do a telnet to
smtp.gmail.com 465
so you can check if you have a firewall that blocks your outgoing connection.Bye Renzo
2 March 2022 at 08:56 in reply to: Need help finding binary to do ESP8266 “websocket” for LaserGRBL #19053Hi Jeff,
It seems there is 2 times the setup and loop function.
Probably there are multiple includes or similar.
Bye Renzo1 March 2022 at 17:11 in reply to: Need help finding binary to do ESP8266 “websocket” for LaserGRBL #19050Hi Jeff,
I can’t find anything of detailed about your board.
Without a connection schema or PCB It’s very difficult to do something similar.
Sorry bye Renzo1 March 2022 at 08:02 in reply to: Need help finding binary to do ESP8266 “websocket” for LaserGRBL #18992Hi Jeff,
you must say what board do you have in your 3018, and you must know if It’s Arduino based or completely integrated.
When you identify the RX and TX pins you must follow this tutorial.
Bye RenzoHi Claudcate,
wait, first try to send an email with standard WiFi management.
Give me a feedback.
Bye Renzo -
AuthorPosts