8 years, 8 months ago.

Transfer data via ethernet LPC1768

Hello, I am on a project where when the LPC1768 received an order via ethernet, I then read data from an accelerometer via I2C and then send back these data via ethernet. The I2C part is OK, but and don't know how to program a server on the LPC1768, I'm searching examples. I think I will use UDP to send data to the client because HTML is too heavy. Thanks

Michel

1 Answer

8 years, 8 months ago.

You probably want to use TCP not UDP.

UDP is for uni-directional broadcasts with no checking if the data got there or not. TCP is a bi-directional point to point link where the network layer handles acknowledges and re-transmissions.

There is an example server here: https:developer.mbed.org/handbook/Socket