WEBVTT

00:00.300 --> 00:06.920
The first way to communicate with cell communication is, of course, from the Arab world to your computer,

00:07.170 --> 00:10.210
and that's what you've already used quite a lot so far.

00:10.440 --> 00:15.270
So I'm just going to give you a quick recap here, as well as some useful tips.

00:15.620 --> 00:17.210
What if you do so first?

00:17.220 --> 00:21.360
Of course, you have seen that you need to set up the cell communication.

00:21.360 --> 00:30.750
We say that you and you need to provide a birth rate, which is basically the speed of the data transfer.

00:31.350 --> 00:37.380
So this nine thousand six hundred is a pretty common low rate that works actually will.

00:37.380 --> 00:42.570
And you will find this in many of the projects and examples on the Internet.

00:42.990 --> 00:45.860
So this is basically what you do in the setup.

00:45.870 --> 00:50.710
And usually that's one of the first line I tried to set up before everything else.

00:51.240 --> 00:59.000
So then you can use that print or print, and that's why we've been telling hello.

00:59.900 --> 01:00.420
All right.

01:00.960 --> 01:08.670
So you can use the print of print in the setup function in the loop function or in any other function

01:08.670 --> 01:09.540
that you create.

01:10.260 --> 01:16.140
As long as you have initialized the cell communication at the beginning of your setup function, you

01:16.140 --> 01:19.890
can use, say, the print and print everywhere in your program.

01:20.250 --> 01:27.240
So now if you so make sure the board is connected, you upload code its name it to your.

01:29.270 --> 01:36.980
And on the sale monitor also, you can see our group on tools, say on monitor or you have to get a

01:36.990 --> 01:37.670
shot at.

01:38.380 --> 01:39.470
I'm going to click here.

01:40.760 --> 01:41.960
And you will see.

01:42.000 --> 01:42.560
Hello.

01:42.600 --> 01:43.740
OK, that's quite a.

01:44.210 --> 01:51.350
So you one important thing is to make sure that the birth right corresponds in the sale monitor and

01:51.350 --> 01:52.700
in your code.

01:53.700 --> 01:57.390
So this is the same monitor is actually your computer.

01:57.420 --> 01:59.600
OK, so that is the side of your computer.

01:59.850 --> 02:06.420
What you see on the code is going to you are in a bowl and these are printed and we come from you untrainable

02:06.660 --> 02:09.830
all the way through the USB cable to your computer.

02:09.840 --> 02:15.270
And this the cellular monitor in the receiving side for the data you send of a cell.

02:15.660 --> 02:17.490
So that's pretty much it all you need to know.

02:17.700 --> 02:21.860
Now, just one tip, because here you've seen that they're using standard printing.

02:21.870 --> 02:27.720
And every time it goes back to a new line on the same money talk that if you print multiple times,

02:27.720 --> 02:30.280
hello, you will have hello and then hello here, here, here.

02:30.870 --> 02:33.840
What if you want to print several things on the same line?

02:34.200 --> 02:42.450
Well, in this case, let's say you have a viable ENTI, which is seven and you want to print, for

02:42.450 --> 02:46.680
example, the value is and then the value and then something else.

02:47.220 --> 02:49.010
And you want to bring that on the same line.

02:49.710 --> 02:53.040
But what you can do is use, say, aldred print.

02:54.180 --> 02:54.840
Let's see.

02:56.470 --> 03:07.510
The value is let's put this then another pilot, Brent, with let's say this time we use I so this would

03:07.510 --> 03:08.410
be seven.

03:09.460 --> 03:10.570
And say that.

03:11.600 --> 03:18.420
Bring Ellen Wave and say we want to finish with a gut, OK, and let's see what it does.

03:19.070 --> 03:25.520
Well, let's applaud the program and open the same monitor and you will see the value is seven.

03:27.390 --> 03:29.510
Let's put that actually in the loop.

03:32.120 --> 03:34.610
Have a delay of one Segan.

03:38.980 --> 03:45.520
And yes, of course, we have a problem because I it was declared in the setup, this is a different

03:45.520 --> 03:48.130
scope, so it's simply not working.

03:48.940 --> 03:52.590
So I'm just going to create created in the loop because.

03:54.380 --> 04:00.350
What is the example, we don't need to talk differently every time and you will see the value is seven

04:00.770 --> 04:04.770
very seven with a dot and a new line every time, OK?

04:06.060 --> 04:13.420
But that's a quite convenient way to send one string over just one line, you use print instead of printing.

04:13.440 --> 04:18.090
So everything will be so that I will be just returned after this.

04:18.510 --> 04:22.080
And for the last piece of string, you just add.

04:22.740 --> 04:26.700
So if we go back to a new line for the next data you sent of a sale.
