Content originally posted in LPCWare by Rob65 on Sun Nov 27 08:46:52 MST 2011
Quote: hcanova
I understand now, I need to wait for the uip_acked () every time I send a packet, however I believe this is bad
No, not bad at all - this is good.
You want to wait for the confirmation that the packet has been received correctly by the other end (ACK) or not (NACK). The example given only handles to ACK situation, you need to decide yourself what to do when a packet is NACKed.
Zero might have some ideas on this, I have not used UIP myself (my 1769 board is due to arrive next week :D).
If you want you can always create your own function that sends the packet only after the previous packet has been acknowledged.
Rob