So now what we're going to do is we'll try to understand how we receive the data, right, so we'll
be adding some randomly donor console.
And that will try to resume.
Right.
So first, let's see, just declared one before that will be used to sue the leader.
Right.
So we had you week because you'll be receiving the retail of by the named are both for data received,
OK, and it will have a size of 11, right?
So this allows the store and 11 bytes of data into this right.
So we plan to send only 11 byte from and you what that will be storing over here, right?
So if you explore the API that gives that, we have to receive the data, so we have it quite like received,
right?
So this.
Again, operating to more pool mode or an instrument, it required an instance pointer.
OK, then you wait the turbo four pointer and the number of bytes that we.
Plan to receive.
Right.
And this basically returns the number of bytes.
Right.
So we go ahead and we try to utilize this function, right?
So we call this function.
We're here.
OK.
And then for this document is the just structure, which is you what the second argument is the pointer
to are Rita buffer.
So again, we will be utilizing.
The dress so far date, all right, so we just need to specify the element of ready and that dress of
that will store as the pointed right.
And we plan to receive 11 bites of lead right now.
What we're going to do is no, since this returns, the number of light, that issue will just be very
plain whether.
The literacy, OK, so we are saying this value to lyricism count.
OK, and with each new bite we receive will be implementing the value of concrete.
So whatever previous value that we have for account will be implementing with the number of bytes this
right.
So while count is not equal to 11, right, in that case, we'll just be waiting to receive all the
data and as soon as we.
As soon as our count becomes equal to one, that basically means we will receive all the details, right
and here.
Now remember, we want to.
Stool each new bite into the element of far right, so this should not be zero.
It should be equal to come with each new bite we received.
The account value will be incrementing.
OK, and that will basically increment address of the element that we have in another race.
So we have 11 elements which are operated in an array.
So as we increase the value of account, the number of elements, the.
So here's what we're going to do is we have a count variable, which will be implemented as we receive
a new byte.
And since we specified this to be an address of an element where we want this to the leader who gets
with each new value of account, we have a unique element of energy where we will be storing the lead,
right?
So after the transmission is complete, what we gonna do is we'll just be mentioning, we're here.
OK, the transmission.
Complete, right?
And then we will be waiting for entire data to.
Then will again be resetting our people.
Right?
Then we will be sending this all data that we have in a need to receive buffer to the concentrate.
So we do that is we again call the death.
OK.
And here we will be utilizing the format specified to be person zero C and the data that we are going
to send is present inside the literacy rate.
With each new iteration, we want the same reader.
So let me just use four called OK equals to zero.
Now what we are doing here is we are using account because as soon as we come out of this, do I look
around will again be reusable, right?
So will again be making count of equals to zero and count is less than equal to 11 in that case will
just be incrementing.
I'll come right.
And in that case, with each new value of a.
Well, will be sending the data on two weapons, so this.
Makes it today to what we are doing.
First, we declared the only way we could store 11 bytes of data.
OK, we are calling and you are initialization function.
Then we are waiting for all the 11 bytes to transmit.
OK, so this function returns the number of byte that is actually sent, right?
So with each new byte we sent will get our count value will be implemented and simultaneously the new
element will be chosen from memory.
We will be storing added right.
So after our transmission completes, OK, we are just.
Here it should be.
Reception company, great to be able to receive all the 11 bytes of data, then to send this string
again.
We are waiting for an entire string to be sent.
When you are, then we are gearing up.
OK, and then we are calling the four look.
OK, where we are waiting for an 11 version because we have an 11 bytes of data presenting our received
buffer.
And with each new iteration, OK, you could clearly see we are sending data to come great.
So with each new value for loop, our count will be changing and that will be sending the new D down
to the console.
So with this, let it just build up our code.
OK, by betting control, and once it is successful, we will have our yearly fight.
OK, so we go ahead.
Select an application project debug as launch one, right?
So this will be automatically relaunching the debug session.
OK, and then we have our right system, right?
So what we're going to do is we'll just be clicking on this resume button.
OK, so you want and it will be successful and you are self this just this.
I goal will be simply waiting for a user to add it, either because we added it while look and we will
be coming out of I look only when we receive a by great.
So here we will be adding an 11 byte.
So hello, I'm space.
So this represent the 11 byte of data that will just be hitting on enter.
OK?
As you see, as we complete receiving 11 might, so we first get reception, got complete message.
And then be able to sing again, and Hallelujah, which is the leader that we have in received, right?
So this is how you then received EPA that we have it, then you would like to receive the regional what
are we going to do next?
You will be utilizing the multiple instance of a new work.
So that helps us understand how we handle the multiple instances of and you are.