Forum Replies Created
-
AuthorPosts
-
28 November 2021 at 18:29 in reply to: Arduino Uno Wifi Rev2 Could not connect to mail server #16607
Hi Renzo,
It’s all good, I’ll keep trying to figure it out. Thank you so much for your time and help!
27 November 2021 at 23:03 in reply to: Arduino Uno Wifi Rev2 Could not connect to mail server #16578Hi Renzo,
I tried uninstalling and reinstalling the WiFiNINA library and reuploading the certificate, but it still gives me the error code 2. I also tried to download the most recent version of WiFiNINA, but to no avail. What else could be wrong with it?
27 November 2021 at 22:00 in reply to: Arduino Uno Wifi Rev2 Could not connect to mail server #16576When I upload the google.com certificate, the popup says that it was successfully downloaded. Not sure if this is supposed to happen, but afterwards my device can’t connect to the internet until I unplug and replug it back in after uploading the certificate. If it says that it was successfully put on the device, is it there indefinitely?
27 November 2021 at 19:53 in reply to: Arduino Uno Wifi Rev2 Could not connect to mail server #16573Hi Renzo,
I have been able to successfully connect to my phone’s hotspot but it still doesn’t connect to the mail servers, although my phone is connected to the same wifi as the one I’ve been using. If the Wifi network is blocking it, would it still be blocked on the hotspot?
If not, would that narrow it down to the google account? I followed the instructions shown for creating the 2-step verification and application password.
27 November 2021 at 16:26 in reply to: Arduino Uno Wifi Rev2 Could not connect to mail server #16572Connecting to WiFi
Connection: ESTABLISHED
Got IP address: 10.192.42.23
ONLY ONE RECIPIENTmiltiple destination and attachments
Insecure client:0
smtp.gmail.com
465
Sending status:
0
2
Could not connect to mail server
27 November 2021 at 00:02 in reply to: Arduino Uno Wifi Rev2 Could not connect to mail server #16568I think that this is the same code that I uploaded before, so if the code worked for you does that mean there’s something wrong with the google account/board?
26 November 2021 at 23:45 in reply to: Arduino Uno Wifi Rev2 Could not connect to mail server #16567#include "Arduino.h" #include <EMailSender.h> #include <WiFiNINA.h> uint8_t connection_state = 0; uint16_t reconnect_interval = 10000; const char *ssid = "Wifi network"; const char *password = "Wifi password"; uint16_t smtpport = 465; EMailSender emailSend("finnabouttacatchsomerats@gmail.com", "xxxxxxxxxxxxxxxx"); uint8_t WiFiConnect(const char *nSSID = nullptr, const char *nPassword = nullptr) { static uint16_t attempt = 0; Serial.print("Connecting to "); if (nSSID) { WiFi.begin(nSSID, nPassword); Serial.println(nSSID); } uint8_t i = 0; while (WiFi.status() != WL_CONNECTED && i++ < 50) { delay(200); Serial.print("."); } ++attempt; Serial.println(""); if (i == 51) { Serial.print("Connection: TIMEOUT on attempt: "); Serial.println(attempt); if (attempt % 2 == 0) Serial.println( "Check if access point available or SSID and Password\r\n"); return false; } Serial.println("Connection: ESTABLISHED"); Serial.print("Got IP address: "); Serial.println(WiFi.localIP()); return true; } void Awaits() { uint32_t ts = millis(); while (!connection_state) { delay(50); if (millis() > (ts + reconnect_interval) && !connection_state) { connection_state = WiFiConnect(); ts = millis(); } } } void setup() { Serial.begin(115200); connection_state = WiFiConnect(ssid, password); if (!connection_state) // if not connected to WIFI Awaits(); // constantly trying to connect EMailSender::EMailMessage message; message.subject = "Email"; message.message = "Email Sent!"; EMailSender::Response resp = emailSend.send("ReceivingEmail@gmail.com", message); Serial.println("Sending status: "); Serial.println(resp.status); Serial.println(resp.code); Serial.println(resp.desc); delay(2000); } void loop() { }
26 November 2021 at 19:23 in reply to: Arduino Uno Wifi Rev2 Could not connect to mail server #16565Hi Renzo,
I’ve been fiddling around with the Arduino and found that the wifi board is able to ping smtp.gmail.com and its port 465. Since my app password settings says that the password hasn’t been used, does this mean that the problem has to do with the logging in?
Also, for the gmail account being used for sending the emails, is there any other specifications it needs or can it just be any gmail account with less secure access on and app password?
25 November 2021 at 00:36 in reply to: Arduino Uno Wifi Rev2 Could not connect to mail server #16518Hi Renzo,
I created an application password like you said and replaced the sender gmail account’s password with it in the code, but I’m still seeing error code 2. I also tried reuploading the google.com certificate.
Is it because I’m using a W102 wifi module or should this library work for any board compatible with WiFiNINA?
-
AuthorPosts