I am trying to get a basic web server running on my Raptor that can serve pages and react to the user pushing a button on the page.
I have the WebServer running, but as far as I can tell all it can do is serve static pages and all the examples of using it I have found are extremely simple: simple decode a couple of different pages and send something back.
So I thought I would go right down to the socket level and really see what was going on.
However the Socket Server example given in the 4.3 release does not work since
using Socket = System.Net.Sockets.Socket;
does not work.
I have not been able to figure out what to use to get at the socket (IP socket, not Gadgeteer socket, very confusing and hard to search) access.
Can anyone point me in the right direction or have some sample code?
This triggers my goodbye web event, but I don’t know how to get the Text1=ABCD.
In the WebEventReceived event, the path is “goodbye”, the method = 1 (i,e,get) and the responder has stuff for sending the response. Don’t know why it would ever be in the response any way, but I have looked through it for my data and can’t find it.
So that is my problem. How using the Webserver can I get the query part of the URL?
Yes that post is critical to get the WebServer working at all. I did as suggested and got the server to decode and process my requests. My issue was getting the query part of the URL to my app so that I know the user’s input.
Path now looks clear to a fully functional web server!