Moderator: igrr
I've been playing around with loading HTM files and images and a little javascript to make interactive web pages.
What is your preferred way to get data transfer from page to esp, from esp to page.
I am following an audio javascript course I found online (JavaScript 101 – A Free 10 Hour Audio Course On JavaScript Fundamentals) [url]addyosmani.com/blog/javascript-101-free-course/[url]
Still I am only a few lessons in but getting to know what i can and cannot do.
I loaded the basic SD card test. Works fine. Serial monitor indicates the file is writing to SD correctly.
Then I loaded the SDWebServer example. Changed CS (in the sketch) to pin 2 because that's how the SD card test was working. That is the only change I made. Upon reset, I get:
""
Connected! IP address: 192.168.0.122
MDNS responder started
You can now connect to http://esp8266sd.local
HTTP server started
SD Card initialized.
""
Then I try the browser. First of all if I browse to http://esp8266sd.local the browser (or proxy or whatever) bounces me to my default search engine. So I just browsed direct http://192.168.0.122
When I do that, I get the following at the browser:
""
SDCARD Not Detected
URI: /
Method: GET
Arguments: 0
""
Also I get "SDCARD Not Detected" in the serial monitor.
Soooooo.... Anyone got this working? Also, I'm not totally sure what I should be keying in to the browser to perform the various functions. I've done some other LED test sketches, so the argument concept is not foreign to me. But the GET, PUT, and such are things I haven't researched yet. Has anyone seen a tutorial on this example?
EDIT 8/4: Learned that the HTTP code I need comes from canned routines that need to be loaded onto the microsd. I forgot that bit, having never been much of a web programmer. For those who are interested, look in the github where SDWebserver is located. There is also a subdirectory something like "SD root". Grab those files and throw them on the SD. Start your sketch, and browse to the IP address. The browser will load the web page directly from what you just put on the SD. Browse to IP/edit and the browser will load a really nice web page (again from the SD) that allows file management utilities including upload.
<Note my MDNS still doesn't work. It's not a big deal to me at this point. I read somewhere that MDNS isn't really standard logic anyway. Still, it would be nice to know how to browse to *.local >