Forum Replies Created
-
AuthorPosts
-
Hi Renzo,
many thanks for the follow up.
I think I fix the issue where I needed to close the connection to the sql server before to sending the email.
I made an amazing project, thanks to your code.
Again, many thanks for your passion and your contribution.
Andrea
Hi Renzo,
good news.
When condition is “if (sensore > 300)” it works ! 🙂
better than nothing. 😉
I think I’ll fix the code with a trick.
Thank you!
Andrea
Hi Renzo,
please see the serial output below.
Once WIFI connection has been established, the Email1 is sent every 500 millis.
Once the sensore Luminosità < 300, the the IF function is triggered but Email2 got error “Could not connect to mail server”.
I’d suggest you to try to write a sketch using connection from Arduino cloud.
Should you need more information, please let me know.
Donation for your assistance will follow shortly.
Many thanks,
Andrea
connected with Ozzy, channel 1
dhcp client start…
ip:192.168.1.36,mask:255.255.255.0,gw:192.168.1.1
Sending status:
1
0
Message sent!
Connected to “Ozzy”
Luminosita’ 408
Sending status:
1
0
Message sent!
Luminosita’ 406
Sending status:
1
0
Message sent!
Luminosita’ 122
Sending status:
0
2
Could not connect to mail server
Sending status:
0
2
Could not connect to mail server
Luminosita’ 114
Sending status:
0
2
Could not connect to mail server
Sending status:
0
2Hi Renzo,
I added a delay(10000) to the code but I got the same issue.
I even removed Email1 but I still get the same error “Could not connect to mail server”.
If I move Email1 out of the IF syntax, then it works which sounds really crazy to me.
Do you have any clue?
Thanks!!
Andrea
-
AuthorPosts