Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.

winton

Member Since 26 May 2011
Offline Last Active Mar 27 2013 09:08 AM
-----

Posts I've Made

In Topic: RN-XV WiFly Module driver

20 February 2013 - 07:56 AM

Thank you, solved.


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

 

I: HTTP/1.1
I:  41
I: 1 
I: L
I: en
I: g
I: th
I:  R
I: eq
I: u
I: ir
I: ed
I: rn
I: C
I: on
I: te
I: nt
I: -
I: Ty
I: pe
I: : 
I: t
I: ex
I: t/
I: ht
I: m
I: lr
I: nD
I: at
I: e
I: : 
I: We
I: d,
I:  
I: 20
I:  F
HTTP/1.1 411 Length Required
Content-Type: text/html
Date: Wed, 20 F
I: eb 2013 02:14:15 GM
I: TrnCo
I: nn
I: ec
I: t
I: io
I: n:
I:  c
eb 2013 02:14:15 GMT
Connection: c
I: losernContent-Lengt
I: h: 24
I: rnrn
I: <
I: h1
I: >L
I: en
I: g
lose
Content-Length: 24
 
<h1>Leng
I: th Required</h1>*CLO
I: S*
D: Left streaming mode

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");

 


home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.