Thank you, solved.
- Netduino Forums
- → Viewing Profile: Posts: winton
Community Stats
- Group Members
- Active Posts 5
- Profile Views 4229
- Member Title New Member
- Age Age Unknown
- Birthday Birthday Unknown
-
Gender
Not Telling
User Tools
Friends
winton hasn't added any friends yet.
Posts I've Made
In Topic: RN-XV WiFly Module driver
20 February 2013 - 07:56 AM
In Topic: RN-XV WiFly Module driver
20 February 2013 - 02:21 AM
Thanks Stefan
The Get method is work. Now could you tell me how to post data? Could you show me an example?
I simply change the word "GET" to "POST", but it is not work.
Below is debug output
th Required</h1>
On the other hand, I test your HttpClient class but can't work. It show a error
An unhandled exception of type 'System.Net.Sockets.SocketException' occurred in Microsoft.SPOT.Net.dll
By the way, I was using the Gadgeteer to test your ToolBox.
Thank you very much.
In Topic: RN-XV WiFly Module driver
19 February 2013 - 08:22 AM
Hi
I am testing the RN-XV WiFly Module driver.
But I don't know how to use socket to connect to my WCF Web service.
I see the example ,but don't understand how to modify it.
For example,if my webservice is http://test.sino.org...tMonitoringList
sorry can't post my real webservice url.
I use below code, but the Debug output shows
I: ERR: Bad Addrrn
So how to write the correct socket data string to web service?
Thank you very much.
// Creates a socket
SimpleSocket Socket = new WiFlySocket("test.sino.org/WCF1/Service1", 80, WifiModule);
// Connects to the socket
Socket.Connect();
// Does a plain HTTP request
Socket.Send("GET /GetMonitoringList HTTP/1.1rn");
Socket.Send("Host: " + Socket.Hostname + "rn");
Socket.Send("Connection: Closern");
Socket.Send("rn");
- Netduino Forums
- → Viewing Profile: Posts: winton
- Privacy Policy