I have designed a working program that uses RPC to poll data from a datalogger. This logger has an IP address, and I used a HTTP POST function to send some commands to the logger and receive the reply.
The program works well when the logger is on, but when it is off, the POST function is targeting an IP that isnt there. This causes the program to hang momentarily, and an error to pop up eventually.
Is there a way to negate this hangtime? I would like the program to retain its functionality and display a "logger offline" message when this happens.