Repository navigation
Update WebServer.h - #49
Conversation
Hi again. Here is a summary of the changes - The recent patches did not compile. On Arduino 1.0.5 MAX_SOCK_NUM was missing so I included ethernet.h - I added back write(const uint8_t *buffer, size_t size) which was removed with the addition of buffering - I added printf for convenience - I made reset & flushBuf public. I'll continue to use the current version and report any bugs. I think that it may be a good time to up the version number Thanks
|
As my recent commits have caused a couple of your issues (my apologies), here are my comments from a quick skim of the code:
Am away from my PC at the moment so I can't dig out the relevant commit but can do this evening if that would be useful? |
|
Now I'm back at the PC I don't have to rely on my flaky memory... The |
|
I saw that Print had the method implemented but it was not compiling for me Now that you asked about why is not picking up the base implementation I http://forum.arduino.cc/index.php/topic,107400.0.html Basically if you want the compiler to look for overloaded virtual functions Matias On Mon, Feb 3, 2014 at 5:37 PM, Matt Robinson [email protected]:
|
|
Well, you learn something every day... Is there a noticeable improvement in the file transfer speed using your implementation vs the default? |
|
I did not run any performance test on it yet. My approach was more pragmatical. I saw that the ethernet client had support for block transfers so I used it. I think that on my particular set up it won't matter too much since the network card is using SPI anyways (it will just save some instructions). Thanks |
|
Just an idea: instead of Print the server could implement the Stream interface and then you could directly parse the request body with the aJson library. Thanks for all the hard work you guys have put into this library. |
Hi again. Here is a summary of the changes
I'll continue to use the current version and report any bugs. I think that it may be a good time to up the version number
Thanks