Hi!
I am working on lifi communication & came across thought that we always use packets of data to transmit while using internet....so I thought that can we make packets by using arduino code in arduino...
I thought I should make 100 bit packet size & send it to reciever.....
Is transmitting through packets possible by arduino?if so how?
Is transmitting through packets possible by arduino?
Yes. The ethernet library does that.
PaulS:
Yes. The ethernet library does that.
the Wire library too.
a basic packet envelope is address and length of data.
plz send a syntax of code for packet size ...
Saifullah006:
plz send a syntax of code for packet size ...
Please use proper spelling and capitalization. YOU define the packet, which then has a size. You measure it.
Saifullah006:
plz send a syntax of code for packet size ...
sender
out.write(l); // send the length
out.write(buff, l); // send the data
reciever
size_t l = in.read(); // read the length
in.readBytes(buff, l); // read the data
i really appreciate ur help...thnx
Juraj:
sender
out.write(l); // send the length
out.write(buff, l); // send the datareciever
size_t l = in.read(); // read the length
in.readBytes(buff, l); // read the data
so what do u think what exact length & buffer size should be used for sending 100 bits of packet size....