arduino uno + smtp + ethernet shield

24
Good Practices with ARDUINO UNO ARDUINO + ETHERNET SHIELD + SMTP Made by: Israel Magaña from: Mayatronics.net

Upload: israel-magana

Post on 21-Jul-2015

369 views

Category:

Education


14 download

TRANSCRIPT

Page 1: Arduino uno + smtp + ethernet shield

Good Practices withARDUINO UNO

ARDUINO + ETHERNET SHIELD + SMTP

Made by: Israel Magañafrom: Mayatronics.net

Page 2: Arduino uno + smtp + ethernet shield

Objetivo

● Ending this presentation, you could send an email using a private SMTP server with Arduino UNO and Ethernet Shield with a mixed code used in Arduino's forums.

Page 3: Arduino uno + smtp + ethernet shield

What do we need?

● ETHERNET CABLE

● PROGRAMMING CABLE

● ETHERNET SHIELD

● ARDUINO UNO R3

● ENERGY AND MOTIVATION

Page 4: Arduino uno + smtp + ethernet shield

STEP 1

● put ETHERNET SHIELD on ARDUINO UNO

Page 5: Arduino uno + smtp + ethernet shield

STEP 2

● Connect Ethernet cable to MODEM and the other side to ETHERNET SHIELD

Page 6: Arduino uno + smtp + ethernet shield

STEP 3

● Connect Programming Cable to ARDUINO

Page 7: Arduino uno + smtp + ethernet shield

TESTING CODE

● The next code is free distribution and it's an extract from Arduino.cc's forums modified for this simple example and only works with simple private SMTP server with simple base 64 Auth, it doesn't work with TTLS as gmail.

Page 8: Arduino uno + smtp + ethernet shield

Works fine in

Personal smtp provider

Page 9: Arduino uno + smtp + ethernet shield

Code

Place SMTP server's IP

MODEM'S GATEWAYMY CASE IS 192.168.1.254

Page 10: Arduino uno + smtp + ethernet shield

How do i find smtp server's IP?

● Run cmd● Type server's adress to be found● For Instance: mine: smtpout.asia.secureserver.net

● |

Page 11: Arduino uno + smtp + ethernet shield

Capture IP

Page 12: Arduino uno + smtp + ethernet shield

USER IN BASE 64

PASSWORD IN BASE 64

IF PORT 587 DOESN'T WORKTRY 465 OR 80

Page 13: Arduino uno + smtp + ethernet shield

HOW DO I CAPTURE BASE 64 USER?

● Please access to the next webpage: ● http://base64-encoder-online.waraxe.us●

capture your email adress:● Example's code mail adress:● [email protected]● And it's converted to:● c210cEBtYXlhdHJvbmljcy5jb20=

Page 14: Arduino uno + smtp + ethernet shield

Temporal Password

● Academic's issue:

MTIzNDU=

Page 16: Arduino uno + smtp + ethernet shield

MAYATRONICS

Page 17: Arduino uno + smtp + ethernet shield
Page 18: Arduino uno + smtp + ethernet shield
Page 19: Arduino uno + smtp + ethernet shield

Proof

● LOADING INTO ARDUINO UNO R3

Page 20: Arduino uno + smtp + ethernet shield

Type “e” into Serial monitor

Page 21: Arduino uno + smtp + ethernet shield

SMTP's Magic happened

Page 22: Arduino uno + smtp + ethernet shield

Checking my e-mail out

Page 23: Arduino uno + smtp + ethernet shield

E-mail is temporal and it will not be able next months

● Try it with your own e-mail private servers

Page 24: Arduino uno + smtp + ethernet shield

Do you want .ino code?

● Please Like Presentation● Share it into social networks● Access to mayatronics.net ● Direct link: Here (ad inc)● Send doubts and comments to:● [email protected]