Pages: [1]   Go Down
Author Topic: Ethernet Shield - Text to arduino  (Read 506 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 41
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
Can you tell how can i send a text from an input text in a html page to the arduino?

I have a page in a server (not arduino) where i have a input text. I want to send the text from input to a arduino with a ethernet shield.

Thanks
« Last Edit: July 01, 2009, 03:38:52 pm by metRo_ » Logged

Rural Arizona
Offline Offline
Edison Member
*
Karma: 7
Posts: 1711
Incorrigible tinkerer
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is the server one where you can run programs?  If the server page is written in PHP (maybe others,  but I know a little PHP),  you could fire up an app in the background that opened a socket connection to the Arduino (build the Arduino app using the Chat example as a starting point).

Or you could run a webserver on the Arduino,  and POST the text to it.  The example code supplied with the Ethernet library may not support this,  but I'm working on an update to Ben's Webduino framework that will.  It should be ready before the weekend.  Wanna be a beta tester for it?   smiley

Ran
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 41
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I don't know if i'll have a lot of time but i can try smiley

I want to use a webserver on the arduino and send to it a text from another page. Can you give a link or an ideia how i use the POST, i know that i have the POST and GET but i don't know how to use it.
« Last Edit: July 01, 2009, 04:57:12 pm by metRo_ » Logged

Rural Arizona
Offline Offline
Edison Member
*
Karma: 7
Posts: 1711
Incorrigible tinkerer
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Here are a couple of examples of posting from a PHP page to another host that google turned up:  one using sockets,  and one using CURL.

I haven't tried either yet,  but I'm going to use the sockets example to set up a page on the PC for testing my Webduino changes.

Ran


Logged

Pages: [1]   Go Up
Jump to: