1
00:00:00,150 --> 00:00:06,000
Hi and welcome to a new section in this course, in this section, we are going to work exclusively

2
00:00:06,000 --> 00:00:08,840
in the E.S.P to sketch to improve it.

3
00:00:09,690 --> 00:00:11,790
We're not going to do anything with the Madrid.

4
00:00:13,170 --> 00:00:21,060
What I want to do to begin with is to replace the delay function that you see here in version three.

5
00:00:21,070 --> 00:00:26,330
This is where we are at the moment, version three of these three to sketch with the task scheduler

6
00:00:26,700 --> 00:00:28,920
instead of blocking execution.

7
00:00:28,920 --> 00:00:35,310
At this point for a second, we're just going to use the scheduler to actually schedule the various

8
00:00:35,310 --> 00:00:40,560
things that are happening inside our schedule, such as updating Madrid with the latest rule, humidity,

9
00:00:40,560 --> 00:00:42,200
values and the voltages.

10
00:00:42,960 --> 00:00:49,560
And this is going to allow us to, first of all, improve the efficiency of our application on the ESB

11
00:00:49,580 --> 00:00:53,550
32, but also to better implement new functionalities.

12
00:00:54,090 --> 00:00:58,060
So the first thing we'll do is to replace delay for the tussocks scheduler.

13
00:00:58,080 --> 00:01:08,040
And then in another lecture in this section, we are going to add safety functionality or safety function

14
00:01:08,400 --> 00:01:16,350
that allows the sketch itself to monitor how long the motor pump is turned on in order to prevent flooding

15
00:01:16,360 --> 00:01:17,250
our Tyrolean.

16
00:01:17,260 --> 00:01:24,810
This is just one of the functions that you can implement once we have tasks scheduler running inside

17
00:01:24,810 --> 00:01:25,590
our sketch.

18
00:01:25,950 --> 00:01:31,620
And I'm also going to take the opportunity to refactor other parts of the sketch as well, just to make

19
00:01:31,620 --> 00:01:35,000
it operate better than it does at the moment.

20
00:01:35,490 --> 00:01:42,330
So let's begin with the next lecture where we will implement the test scheduler to replace the delay

21
00:01:42,330 --> 00:01:42,870
function.
