How can you update the data returned by an API Call?
Hi, I recently (Today) wrote a program which could detect whether I am connected to the internet and if I am connected via Lan or Modem. Well when I run the program it return all the right information but unfortunaly I am not able to refresh these data. For example when I run the program it return that I am online vial a lan Connection but if I disconnect my cable modem from the power supply it still return the same infomation I tried to update this information but I was not able to do it anyway. I am not sure but is it that you can't refresh data's returned by API calls when you runed it first? Or is it anyway to do it. I need this program to check the status of the modem because if I become disconnected by an accident for five minutes my ISP will disconnect me from the server and I have to call them. Please help me if you can I really appreciate it.