Email Shield acts as Arduino Shield via 1Sheeld

Buy 1Sheeld
Email Shield acts as Arduino Shield via 1Sheeld

Buy 1Sheeld

Send emails when any hardware event happens.
Learn more from the examples page.

This shield is one of the communication shields.

Communication shields allow you to use your smartphone as a gateway between Arduino and other phones, they make it easier to communicate with your Arduino board by sending and receiving data to or from another phone. Learn more from the communication shields tutorial.

Email Library allows Arduino board to send emails through 1Sheeld application, so now it’s easy to send data over the internet using email library.

Adding #define CUSTOM_SETTINGS along with #define INCLUDE_EMAIL_SHIELD is a key that will let you unlock the Email shield only amongst all shields and prevent 1Sheeld library from eating your memory specially for UNO board.

“There are permissions to be granted by Android M users before they can use the Email shield please make sure to grant the permissions or else it may affect the application’s performance.”

Sends email with data of recipient email, subject and the body.

SYNTAX

Email.send (recipientEmail ,subject ,body);

RETURNS

None.

PARAMETERS

1st Parameter takes the recipient mail who will receive the email in an array of char.

2nd Parameter takes the subject of the mail in an array of char.

3rd Parameter takes the body of the mail in an array of char.

USAGE

Email.send(“example@example.com”,“SubjectIncludedHere“ ,”bodyOfEmail”);

Sends email with data of recipient email, subject and the body.

SYNTAX

Email.send (recipientEmail ,subject ,body);

RETURNS

None.

PARAMETERS

1st Parameter takes the recipient mail who will receive the email as String object.

2nd Parameter takes the subject of the mail as String object.

3rd Parameter takes the body of the mail as String object.

USAGE

String email = “example@example.com”;
String subject = “subjectDataHere”;
String body = “bodyDataHere”;
Email.send (email ,subject ,body);

Attaches last picture taken by the smartphone’s camera so that it can be send to another email.

SYNTAX

Email.attachLastPicture (recipientEmail ,subject ,body ,folderDirectory);

Note: Folder directory supports to choose whether attaching pictures from OneSheeld folder “which created by the application once you use Camera shield” by passing “0” to the function or Camera folder by passing “1” to the function.

OneSheeld folder is set by default so if you don’t have pictures in OneSheeld folder the email will be sent without the picture.

RETURNS

None.

PARAMETERS

1st Parameter takes the recipient mail who will receive the email in an array of char.

2nd Parameter takes the subject of the mail in an array of char.

3rd Parameter takes the body of the mail in an array of char.

4th Parameter takes a number to upload picture from OneSheeld folder “0” or Camera folder”1″.

USAGE

Email.attachLastPicture(“example@example.com”,“SubjectIncludedHere“ ,”bodyOfEmail” , 0/1 );

Attaches last picture taken by the smartphone’s camera so that can be send to another email.

SYNTAX

Email.attachLastPicture (recipientEmail ,subject ,body ,folderDirectory);

Note: Folder directory supports to choose whether attaching pictures from OneSheeld folder by passing “0” to the function or Camera folder by passing “1” to the function.

OneSheeld folder is set by default so if you don’t have pictures in OneSheeld folder the email will be sent without the picture.

RETURNS

None.

PARAMETERS

1st Parameter takes the recipient mail who will receive the email as String object.

2nd Parameter takes the subject of the mail as String object.

3rd Parameter takes the body of the mail as String object.

4th Parameter takes a number to upload picture from OneSheeld folder “0” or Camera folder”1″.

USAGE

String email = “example@example.com”;
String subject = “subjectDataHere”;
String body = “bodyDataHere”;
Email.attachLastPicture(email ,subject ,body , 0/1 );