I have a Teensy 4.1 device that needs to opportunistically connect to a socket server (Java Netty). I have approached this by simply triggering the connect function on a regular interval, but blocking for a few seconds every 30 seconds while trying a connection (to a non-existent server) is not ideal.
Is there a different way to create a connection with the Client concept that is non-blocking? I can easily poll a connection status if this was possible.
Is there a different way to create a connection with the Client concept that is non-blocking? I can easily poll a connection status if this was possible.