Listen on a socket and whilst connected do a http get elsewhere..

I want to listen on a tcp port for commands which is easy enough to accomplish..

what I'm not sure on is, whilst I have an active connection, which may be persistent. Can I make an out going http get request to an external api?

Thanks.

David

you need to make sure your sockets do not conflict. the standard ethernet library is as far as i remember not safe for this kind of operation.

what I'm not sure on is, whilst I have an active connection, which may be persistent. Can I make an out going http get request to an external api?

What happened when you tried it?

I Haven't tried it yet, I thought I would ask the question before I invest time in knocking a POC together when someone with more experience may already know the answer.

If its theoretically possible then I will give it a try.

Sure you can. Just open a second socket. W5100s support up to 4 sockets open at once. W5200 and w5500 support 8. Enc28j60s support 4 at least with the uipethernet library.