I've programmed a C# program for my Netduino Plus that turns around a PTZ camera with an WebRequest - But there's one problem:
The WebRequest takes a very longt time - I think about 3 seconds. When I do the same WebRequest from an C# program on Windows the WebRequest takes less than 0.5 seconds.
Here's my code:
public static void InStateToServer(int Portnummer) { WebRequest WebReq = WebRequest.Create("http://192.168.2.231/decoder_control.cgi?command=31&user=admin&pwd=abc"); try { WebResponse WebResp = WebReq.GetResponse(); } catch { } }
EDIT
I forgot to say that it's the same problem by calling my home server to submit a new instate with the following request "http://192.168.2.200...nstate/1/true".
END EDIT
Does anyone have an idea to solve this problem?
Many thanks in advance.
JoRu1407