Hi Netduino users,
I just wanted to let you know that in my tight spare time I am working on an IIS-like webserver implementation that can easily web enable existing hobby projects leveraging the .NET Micro framework 4.1 platform.
The code is in still alpha - yet I did not have the possibility to test on a real device, only the emulator - so I highly encourage you to test, suggest, comment or report missing features / bugs / performance bottlenecks you may enconter.
Code, sample executables are available at: http://embeddedwebserver.codeplex.com/
Hopefully by next week I will have some real boards to test with!
Cheers,
Balázs
Netduino-compatible embedded webserver
Started by Balázs Takácsy, Nov 29 2011 11:56 PM
5 replies to this topic
#1
Posted 29 November 2011 - 11:56 PM
#2
Posted 06 December 2011 - 10:15 PM
Finally my Netduino Plus has arrived so I could start testing it on an actual device.
Two main issues solved:
* Request header parsing had a bug that could cause infinite loops
* My previous StringBuilder implementation that relied on ArrayList threw intermittent OutOfMemoryExceptions. Now that I moved to progressively growing char arrays the memory issues is gone
Current status:
The EmbeddedWebserver runs smoothly either on PC or Netduino device.
Have fun experimenting with it
#3
Posted 24 January 2012 - 05:00 AM
I like what your doing with this. Can you provide a sample project though? I'm having a hard time getting it to deploy.
#4
Posted 24 January 2012 - 08:06 AM
This is amazing! I can't wait to try it out later on when back from work.
So I see you can use up a local directory on the pc... But can it only support files you can open in your browser locally?
Let's say you have apache/php installed on your pc, would you be able to open up php files locally? what about asp.net?
Also how to retrieve inputs variables from the website?
Sorry for all these questions
#5
Posted 27 January 2012 - 06:34 AM
Looks like these are the only supported files...
private static readonly Hashtable _supportedTypes = new Hashtable()
{
{ ".htm", null },
{ ".html", null },
{ ".js", null },
{ ".css", null },
{ ".gif", null },
{ ".jpg", null },
{ ".png", null },
{ ".bmp", null }
};
Which still rocks! I doubt a netduino is going to parse PHP or asp pages on the server side with the lack of memory, but this far exceeds my expectations! Xml and txt would be good files to add.
Nice job. I will be following this.
#6
Posted 30 December 2014 - 08:46 PM
For anyone who maybe interested I have ported this to .net MF 4.2 and done some code clean up.
https://embeddedwebs...ol/list/patches
I have been using this for quite some time.
- Automate likes this
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users