"Simple" Internet Communication

03 Jun 2010

Hello, Everyone.

Is there currently a mechanism available by which I could send a few remote commands or bytes to an mbed over the internet?  I have seen the webserver stuff, but is there anything akin to simply opening a socket and writing a few bytes like you could on a Windows/Linux platform?

The use would be for an mbed that is controlling another application in a separate location from where I am and using a remote computer to monitor or command the mbed to perform certain tasks.

Chris

03 Jun 2010

Hi Chris,

The networking stack that I developped (see the beta cookbook) provides a socket API. It is not documented yet (but will be quite soon), but if you want to have a go I can send you the source.

Donatien

03 Jun 2010

Hi,  I would like to control `another application in a separate location` similar to Chris`, but I know next to nothing about networking or indeed networking stacks. This would be a good learning exercise for me, so could you send me the source also please, and I will have a go and see what I can make of it.

Many thanks

xnor.

03 Jun 2010 . Edited: 03 Jun 2010

Hi Paul,

No problem, by the way if you want to have a go with the top-level components first (HTTP Server, HTTP Client, NTP Client), feel free to have a look at the beta cookbook(using http://mbed.org/betamode/).

http://mbed.org/cookbook/Working-with-the-networking-stack

http://mbed.org/cookbook/Ethernet

http://mbed.org/cookbook/HTTP-Client

http://mbed.org/cookbook/HTTP-Server

...

03 Jun 2010

I am very interested in your socket API.  Is it located in one of the links you provided here?