WEBVTT

00:00.140 --> 00:01.070
In this activity.

00:01.100 --> 00:08.240
Your challenge is to send a notification to Telegram when your Python program has successfully connected

00:08.240 --> 00:15.710
to the Arduino with serial communication and also a notification when the communication is closed.

00:15.740 --> 00:20.480
Okay, so the code for the communication between the Arduino and the Raspberry Pi is very simple.

00:20.520 --> 00:20.930
Okay.

00:20.930 --> 00:31.220
In the arduino you are just going to init serial communication and in the raspberry pi you just try

00:31.220 --> 00:32.060
to connect.

00:33.200 --> 00:33.380
Okay.

00:33.500 --> 00:42.170
To Arduino and then so you are going to use the retry block that we have seen in a previous lesson in

00:42.170 --> 00:44.870
this course and then when connected.

00:46.200 --> 00:49.560
Send message to Telegram.

00:50.010 --> 01:00.120
So you're going to use the bot and also when serial close, send also message to Telegram.

01:00.120 --> 01:01.260
So the same thing.

01:01.530 --> 01:03.720
This activity should not be that hard.

01:03.720 --> 01:08.970
You have everything you need to make it work and will see you in the next video for the solution.
