I'm working on a remote control type app which let you access the netduino plus webserver with your smartphone.
Now I am putting together the website which is hosted on the SDcard of my N+.
The procedure now is the following :
Put the SD card in my card reader on my pc.
Edit/create the html/javascript/jquery files and save them to the SDcard.
Put the SD card in my N+ and reload the website to see everything is working (and possibly reset my N+)
To add/change things I need to loop continuously through the above procedure. I wonder if there is an easier way to access my SD-file contents without having to swap the SDcard every time....
Any help appreciated.
Sander.
Easy access to SDcard during development
Started by sanders, Mar 08 2011 08:13 AM
4 replies to this topic
#1
Posted 08 March 2011 - 08:13 AM
#2
Posted 08 March 2011 - 08:15 AM
Hi Sander,
Have you thought about creating a bit of code in your program (for use during development) which lets you send a file to the Netduino Plus...and then it saves that file to disk? An HTTP PUT feature perhaps?
Chris
#3
Posted 08 March 2011 - 08:33 AM
Thanks for the fast reply !
I am a beginner and needed some pointers to where to look. (and browsing the forums didn't provide me an answer)
I implemented the webserver posted in this thread : http://forums.netdui...ted-web-server/ and will look how to extend that using a http PUT feature.
Sander.
#4
Posted 08 March 2011 - 09:34 AM
I was planning to knock up a very simple FTP server to go alongside the Netduino web server. I've not looked into the details, but it shouldn't be too hard - especially if only implementing a limited feature set.
Http PUT might be a better way to go.
#5
Posted 11 March 2011 - 07:07 AM
(Being a beginner in Javascript/HTML etc.)
I was looking into a html PUT method but found it is not supported in a html form (only get and post). Tried to do it with a POST method and almost got there, but parsing the stream, finding the startpoint of your file and the endpoint in there, turned out to be not really robust (within the confined memory of the netduino)....
Sticking with a textarea and submit in my form in which I cut and paste my file contents.. (html / javascript only...)
Sander.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users