11 years ago.

Interrupts from TCPServer

Hi,

I have created a TCP server on the mbed. You can see the code on

http://mbed.org/users/Neel/code/Wifly_TCPEchoServer_Sensors/

Currently I am polling the value of n if see if I received a packet or not. What I want to do is to just keep reading the sensors and be interrupted when I receive a request from the client. I know reading sensors is not really very time consuming but I am looking to add a couple of actuators with the mBed which is going to take up a lot of time.

Adding a timer interrupt to poll is a possibility but I don't want to go that route if there is a better way.

Any suggestions on integrating the interrupt?

Be the first to answer this question.