NeonMika.Webserver
#21
Posted 30 November 2011 - 05:05 PM
"Maybe it's because you're a crap programmer"
#22
Posted 30 November 2011 - 05:29 PM
http://diybrewery.com
#23
Posted 30 November 2011 - 05:44 PM
Thanks for the work, If I can find a 2 gig card I'll add try so tests (still on the 2 gig max firmware)I have a SVG image and basic code wipped up for my project but everytime I go to a pc or electronics shop I forget to buy a card
Yeah, I also don't have a card. Best qualification for developing a web server But Jim said it works, so I'm satisfied
To come back on your PWM question: To start PWM, just us
ip/pwm?pin=5&period=20000&duration=12000to set Pin 5 to a 20ms perid with 12ms on
Had no time to code a slider for the index page. Also I'm no good web developer, never used Javascript or CSS before
Thanks for updating the code stream. I'll be pulling down the updates and testing it out.
Thank you, I hope it works
NeonMika.Webserver
> Control your N+ and write webservice methods easyily
> Receive data from you N+ (in XML or JSON)
> Browse the SD on your N+ directly in the browser and down - and upload files
If you need help with NeonMika.Webserver, please just leave a note in the thread and/or contact me via Skype
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
--- Mistakes teach you important lessons. Every time you make one, you are one step closer to your goal. ----
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
#24
Posted 01 December 2011 - 09:01 AM
#25
Posted 01 December 2011 - 09:01 AM
#26
Posted 01 December 2011 - 06:29 PM
Try HTML5's range input type. Nice and easy.
Saw this just some hours before you posted it
Tanks.
duplicate post - no option to delete the posts?
No, I also did this mistake several times...
NeonMika.Webserver
> Control your N+ and write webservice methods easyily
> Receive data from you N+ (in XML or JSON)
> Browse the SD on your N+ directly in the browser and down - and upload files
If you need help with NeonMika.Webserver, please just leave a note in the thread and/or contact me via Skype
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
--- Mistakes teach you important lessons. Every time you make one, you are one step closer to your goal. ----
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
#27
Posted 13 December 2011 - 04:19 AM
So below instead of:
WebServer.AddResponse(new XMLResponse("wave", new XMLResponseMethod(WebserverXMLMethods.Wave)));
I would have
WebServer.AddResponse(new JSONResponse("getTemps",new XMLResponseMethod(MyJSONClassName.MethodName)));
??
and I stick whatever method implementation in MyJSONClassName.MethodName?
what is the syntax like for building the actual JSON response? I'm trying to find an example in the Executable folder but just see the XML version.
Thanks so much for putting this out there for others to use, makes building projects easier when you don't have to re-invent the wheel each time!
#28
Posted 14 December 2011 - 07:44 AM
just downloaded the source code off of codeplex and took a quick peek at the project. Does the JSONResponse follow the same pattern as the XMLResponse?
So below instead of:
WebServer.AddResponse(new XMLResponse("wave", new XMLResponseMethod(WebserverXMLMethods.Wave)));
I would have
WebServer.AddResponse(new JSONResponse("getTemps",new XMLResponseMethod(MyJSONClassName.MethodName)));
??
and I stick whatever method implementation in MyJSONClassName.MethodName?
what is the syntax like for building the actual JSON response? I'm trying to find an example in the Executable folder but just see the XML version.
Thanks so much for putting this out there for others to use, makes building projects easier when you don't have to re-invent the wheel each time!
you need to use jsonresponsemethod instead of xmlresponsemethod. For an example have a look on the framework folder, in which you find Server.cs
there you find the standard implemented methods like setPin etc. ... And one of this methods is JsonMethodList or something like that. It returns all methods implemented as json and can be used as example for json responses. You use JsonObject and JsonArray instead of hashtable.
sry, i'm at work and writing with my smartphone, if you need more infos i can help you when i get home
NeonMika.Webserver
> Control your N+ and write webservice methods easyily
> Receive data from you N+ (in XML or JSON)
> Browse the SD on your N+ directly in the browser and down - and upload files
If you need help with NeonMika.Webserver, please just leave a note in the thread and/or contact me via Skype
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
--- Mistakes teach you important lessons. Every time you make one, you are one step closer to your goal. ----
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
#29
Posted 14 December 2011 - 05:53 PM
you need to use jsonresponsemethod instead of xmlresponsemethod. For an example have a look on the framework folder, in which you find Server.cs
there you find the standard implemented methods like setPin etc. ... And one of this methods is JsonMethodList or something like that. It returns all methods implemented as json and can be used as example for json responses. You use JsonObject and JsonArray instead of hashtable.
sry, i'm at work and writing with my smartphone, if you need more infos i can help you when i get home
Thanks for the post, I took a look at that server class and think i have my head wrapped around it now. I'll give this a try once finals are over and i have a bit more time. Thanks!
Chris
#30
Posted 17 December 2011 - 04:47 AM
#31
Posted 28 December 2011 - 08:52 PM
#32
Posted 02 January 2012 - 10:27 AM
NeonMika.Webserver
> Control your N+ and write webservice methods easyily
> Receive data from you N+ (in XML or JSON)
> Browse the SD on your N+ directly in the browser and down - and upload files
If you need help with NeonMika.Webserver, please just leave a note in the thread and/or contact me via Skype
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
--- Mistakes teach you important lessons. Every time you make one, you are one step closer to your goal. ----
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
#33
Posted 02 January 2012 - 03:14 PM
#34
Posted 03 January 2012 - 08:31 AM
NeonMika.Webserver
> Control your N+ and write webservice methods easyily
> Receive data from you N+ (in XML or JSON)
> Browse the SD on your N+ directly in the browser and down - and upload files
If you need help with NeonMika.Webserver, please just leave a note in the thread and/or contact me via Skype
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
--- Mistakes teach you important lessons. Every time you make one, you are one step closer to your goal. ----
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
#35
Posted 10 January 2012 - 12:18 AM
#36
Posted 10 January 2012 - 05:15 AM
NeonMika.Webserver
> Control your N+ and write webservice methods easyily
> Receive data from you N+ (in XML or JSON)
> Browse the SD on your N+ directly in the browser and down - and upload files
If you need help with NeonMika.Webserver, please just leave a note in the thread and/or contact me via Skype
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
--- Mistakes teach you important lessons. Every time you make one, you are one step closer to your goal. ----
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
#37
Posted 10 January 2012 - 12:10 PM
#38 Guest_Ahmed Osman_*
Posted 31 January 2012 - 11:30 AM
I've a html file on the SD and want to show it up.
WebServer.AddResponse(new FileResponse("main",--what I should put here--));
Thanks
#39
Posted 31 January 2012 - 04:51 PM
Just use it the following way:
http://ipnetduino:port/\SD\file.txtIf you want to leave the \SD\, go to the Settings.cs and change ROOT_PATH to
public const string ROOT_PATH = @"\SD\";Then you should be able to use your file like
[code=auto:0]http://ipnetduino:port/file.txt[/code
I was never able to test it because i don't have a SD card... But it SHOULD work that way ;)
NeonMika.Webserver
> Control your N+ and write webservice methods easyily
> Receive data from you N+ (in XML or JSON)
> Browse the SD on your N+ directly in the browser and down - and upload files
If you need help with NeonMika.Webserver, please just leave a note in the thread and/or contact me via Skype
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
--- Mistakes teach you important lessons. Every time you make one, you are one step closer to your goal. ----
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
#40
Posted 11 February 2012 - 12:31 PM
Also tagged with one or more of these keywords: webserver, web server, neonmika, internet, web, server, http, sd, xml, json
Hardware →
Netduino 3 →
Web server, socket, reading buffer data?Started by TheBrian , 10 Feb 2016 web server, socket, buffer |
|
|
||
Hardware →
Netduino 3 →
ND3 SD Filestream.Read() seems to become brokenStarted by ukkiwisurfer , 08 Nov 2015 SD |
|
|
||
Hardware →
Netduino 3 →
ND3 hangs calling File.Delete()Started by ukkiwisurfer , 06 Nov 2015 SD, Wifi, Netduino |
|
|
||
General →
General Discussion →
Support for Micro SD Card > 2 GBStarted by TechnoGuy , 10 Sep 2015 MicroSD, SD, SDHC, SDXC, FAT12 and 3 more... |
|
|
||
Hardware →
Netduino Plus 2 (and Netduino Plus 1) →
Why do I have to reboot my device to change the IP address?Started by cSharper , 31 Jul 2015 webserver, ip, netduino, change and 1 more... |
|
|
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users