Is TCPClient.connect() a blocking call? Sometimes it returns “immediately”, but other times it takes a fraction of a second or longer to return. If this is a blocking call, is there any way to make it asynchronous?
My user experience requires realtime processing of motion data, so any blocking call causing the system to become momentarily unresponsive kills the user experience. If TCPClient.connect() does block, is there another way to make HTTP requests over the local network without blocking the main loop?