NeonMika.Webserver @ http://neonmikawebserver.codeplex.com/
Introducing
Hey guys,
NeonMika.Webserver is an pre-setup and easy to extend webserver. With minimal (to no) code you can achieve great results controlling your Netduino+, accessing and uploading files and more!
It's supports:
- SD card access
- Controlling your Netduino using existing methods like setPWM or setDigitalPinState (see full list below)
- Adding your own webservice-like methods so you can expand NeonMika.Webserver to your own needs for every project.
How easy is it?
Server WebServer = new Server PinManagement.OnboardLED, 80, false, "192.168.0.200", "255.255.255.0", "192.168.0.1", "NETDUINOPLUS");
The parameter for setup are: The OnboardLED, Port, DHCPenable, ipAdress, subnetMask, gateway, name.
You don't need anything more to run it!
At http://neonmikawebse...m/documentation you can find a complete documentation on how to set up the server and how to expand it.
What methods are already implemented?
Here is a list with all pre-coded webmethods you can use within your browser or any other application to communicate with your Netduino:
echo (Returns the submitted value)
-> netduinoplus/echo?value=[a-Z]
switchDigitalPin (Switches the selected pin from true to false and vis-a-vis)
-> netduinoplus/switchDigitalPin?pin=[0-13]
setDigitalPin (Set the selected digital pin to the selected state)
-> netduinoplus/setDigitalPin?pin=[0-13]&state=[true|false]
pwm (Set the PWM of the pin to the submitted period & duration
-> netduinoplus/pwm?pin=[5|6|9|10]&period=[int]&duration=[int]
getAnalogPinValue (Return the value of the selected analog pin)
-> netduinoplus/getAnalogPinValue?pin=[0-5]
getDigitalPinState (Returns your selected pin's state (on / off))
-> netduinoplus/getDigitalPinState?pin=[0-13]
getAllAnalogPinValues (Return the value for each analog pin)
-> netduinoplus/getAllAnalogPinValues
getDigitalPinState (Returns the state for each digital pin)
-> netduinoplus/getAllDigitalPinStates
getAllPWMValues (Returns the values for all PWM ports)
-> netduinoplus/getAllPWMValues
fileUpload (Uploads a file to the path on the SD card via POST. You have to write the file-data (bytes) into the POST body)
-> netduinoplus/upload?path=[a-Z]
AND FOR SURE:
File and directory response
Just type in netduinoplus/[pathtomyfile] and you can view / download your file. If the given path is a directory, a directory view will be returned
Some examples:
Example commands (can be executed with browser):
Show file directory:
Access file:
Download & Documentation:
http://neonmikawebserver.codeplex.com/
http://neonmikawebse...m/documentation
Project & Videos
Controlling your Netduino+ with Android phone
Thanks to skarphedinnos for this great video about controlling Pins and PWM with NeonMika.Webserver & Android!
http://www.youtube.c...h?v=Q5T7TQsOf-w
Home brewery
Thanks to Coding Smackdown for using NeonMika.Webserver in his awesome beer brewing Project!
N+2 aquarium controller
Thanks to H07R0D!
http://forums.netdui...roller/?p=34544
--------------------------------------------------------
I appreciate every kind of response. I want this to help the community, so I hope the communty will help me to get this project better and better
Thanks and greets,
Markus
-----------------------------------------------------------------
-----------------------------------------------------------------
Changelog:
- Index page(8.11.2011)
- Screenshot ofecho, switchPin and index page (8.11.2011)
- JSON support(30.11.11)
- PWM(30.11.11)
- getAnalogPinValue and getDigitalPinState (30.11.2011)
- Examples(30.11.2011)
- FileResponseimproved (15.3.2012)
- Changed indexpage (15.3.2012)
- Nested XMLsupport (28.4.2012)
- Example method for nested XML -> see MultipeXML(28.4.2012)
- Code cleanup(28.4.2012)
- POST working!(22.11.2012)
- File upload(22.11.2012)
- Better XML(22.11.2012)
- Choosing between DHCP and fixed IP (22.11.2012)
- Return filelist from directory (Directory view) (22.11.2012)
- Some changes to the code (Somewhere here between )
- Videos (13.3.2013)
- Nameservice (28.3.2013)
- Server code refactor and restructure (28.3.2013)
- Index page (28.3.2013)
- New webserver methods (28.3.2013)
--- GetAllPWM (Returns duration and period for all PWM pins)
--- GetAllDigitalPinStates (Returns the state for all digital pins)
--- GetAllAnalogPinValues (Returns the value for all analog pins)
- NeonMika.Webserver.ClientLibrary Version 0.1 (28.3.2013)
- NeonMika.Webserver V1.2
--- Fixed POST file upload
--- Fixed SD card view
Attached Files
Edited by NeonMika / Markus VV., 30 January 2014 - 05:47 PM.