Go Down

Topic: Introducing the Webduino web server library (Read 22 times) previous topic - next topic

jpanu

hmm, no luck of finding anything (i just tried to add delay on same position as serial.begin() is). Same behaviour: if I comment serial.begin(); buzzer/led control does not work, when I uncomment that line, it works. Only just that I loose 2 io-pins  :'(  with this.

Would need to know what that serial.begin() does.

jpanu

hmm, no luck of finding anything (i just tried to add delay on same position as serial.begin() is). Same behaviour: if I comment serial.begin(); buzzer/led control does not work, when I uncomment that line, it works. Only just that I loose 2 io-pins  :'(  with this.

Would need to know what that serial.begin() does.

jpanu

hmm, no luck of finding anything (i just tried to add delay on same position as serial.begin() is). Same behaviour: if I comment serial.begin(); buzzer/led control does not work, when I uncomment that line, it works. Only just that I loose 2 io-pins  :'(  with this.

Would need to know what that serial.begin() does.

weijtenburg

Can this be made to work with Wifi?

Perferably i would love to see Wifi integrated on the Ethernet Shield.

Ben Combee

There's a WiFi shield out there, but the Webduino code has not been ported to it yet.  You can do WiFi with it by using a wireless bridge like one of the gaming adapters that let you connect Ethernet to a WiFi network.  You'd first configure the adapter on a PC to connect with the network, they you'd connect the Ethernet shield to the adapter by a short Ethernet patch cable.

ricarDOGS

Hi, i have the same problem that Kalle_Grabowski, when i "submit" with demo/form pins doesn´t changes (Except pin 9, sometimes). any idea?

I probe it with IE8, Chrome and Firefox?

Ben Combee

#66
Nov 12, 2009, 06:48 pm Last Edit: Nov 12, 2009, 06:49 pm by unwiredben Reason: 1
In the Web_Demo.pde file, the setup() function has these lines:
Code: [Select]

 // set pins 0-8 for digital input
 for (int i = 0; i <= 9; ++i)
   pinMode(i, INPUT);
 pinMode(9, OUTPUT);

So pins 0-8 will show what's being input on the pins, not what you submit.  When the pinMode is INPUT, changing the value affects whether an internal pull-up resistor is applied to the pin.  Perhaps the demo should be altered to not let you try to modify input-set pins.

FrankM

Great work this Webduino library and I am certainly going to use it. However I am a bit puzzled about the state of the Ethernet2 library. Are the benefits of it already included in Arduino 0017? And if not are ameliorations in the original Ethernet lib put into Ethernet2? While looking through the forum I seem to find clues to both libraries having different flaws corrected over the last versions.

Thanks for your help

Ben Combee

I've not followed Ethernet2 lately... the main improvement in the Arduino Ethernet library done over the summer was work on handling disconnects better and work on combining multiple bytes into one outgoing packet.  Those both really helped the web library, so I've stopped using the E2 changes.

FrankM

OK, thanks. From the homepage of the Webduino project I thought you were ONLY using Ethernet2. I'll stay with the standard then. Thanks!

squartochi

I am so new at this. So gthis is what I an=m getting? Any ideas?  error: 'class WebServer' has no member named 'readURLParam

Ben Combee

There's a bug in one of the examples where it's using an old version of the one of the routines.  Change the code that calls readURLParam to instead say readPOSTparam.  I'll update trunk and put up a 1.4.1 version (I need it for my class this weekend).

Chewie Baker

I have read this thread and looked at the Wiki page and I am at a loss...

How would I host more than 1 page on a Webduino server ?

I would like to support links from one hosted page to another. Is this supported. I understand C but web servers and C++ are new to me.

TIA
Matt B

Ben Combee

Each page that you want to host is a separate call to server.addCommand().  If the Web_Demo sketch, there's calls to this for "json" and "form" -- if you go to http://xx.xx.xx.xx/demo/form, you'll get different output than just http://xx.xx.xx.xx/.  One key thing -- you don't really have separate pages here... the page is just a function that outputs some HTML, and the URL requested determines what command is called to do that output.

Ben Combee

Also, you can look at the new example Web_RSSFeed (it's in SVN but not in a ZIP file yet)... the default page has a link to the RSS feed from the same device.  The example Web_Image uses a <img> link from the page to fetch the data for a PNG file from the device.

Go Up