This page provides a tutorial of how to send an email on error.
Contents
Overview
The email on error feature allows a remote user\supervisor to receive an email with the workspace snapshot from the head camera when the robot stops on error. This tutorial shows an example of using the workspace snapshot with the catch error node and a gmail account.
Prerequisites
Test with GMAIL Account
- Ensure that the outside port(1) of the robot is connected to a network with internet.
- Select send email and save locally option in the Head camera behavior on error settings.
- Set up the email configuration, an example using a gmail account is:
Note: If you use a Gmail account as was done in this example, you need to configure it to allow less secure apps. Please make sure to also enable the required functionality by completing the "Captcha Enable" challenge. Without this, less secure connections probably would not work.
- Create a basic task.
- Add a throw error node to generate an error.
- Run the task.
- The task execution would follow this sequence:
- Throws an error.
- The head turns toward the active endpoint.
- The head camera takes a picture.
- Sawyer sends the picture to the user over an email, the snapshot can also be seen in the workspace snapshot gallery.
- The task execution would follow this sequence: