Yes agreed and I do in the next video along, but what I was trying to demonstrate was a self-contained server that did not need to use an external resource for images. It is much easier to use external sources.
@MrBobWareham3 жыл бұрын
Thank you for the video project very interesting but then all of your videos are very good at 380 lines of code it amazes me how you have so much knowledge to design such a project, as this a stand-alone server like this is the way to go with no external web service is very good I have been trying Tasmota that works ok until power down then on power up it stops working so I think this is so much better
@asiw8 жыл бұрын
Hi G6EJD Many thanks for bringing the D1 to my attention it looks really good for developing projects. Would it be possible to have a copy of your ESP code. I have had a look at your web site but could not see a link to it. Best wishes Arthur
@G6EJD8 жыл бұрын
Hi, thanks for the interest, please find the files and source code on GitHub: github.com/G6EJD/ESP8266
@asiw8 жыл бұрын
Many thanks for the code, its really interesting to see how you have achieved such a versatile web server with the ESP8266. I have been using the Arduino Uno for about a year now but it would seem that the 8266 has so much more to offer. Your code will help me to see how to take it to the next level. Best wishes Arthur
@G6EJD8 жыл бұрын
Happy to help Arthur, the ESP8266 is faster, has 4M of storage for programmes and runs at either 80 or 160MHz and has built-in Wi-Fi and it's cheaper, plus if you can programme the Arduino then setting the same IDE to support the ESP is really easy and it uses the same commands. I used the ESP extensions for this server, but I could have easily used the basic Arduino constructs to achieve the same, later this week I'll post a video showing a temperature and humidity web server that does not use the ESP specifics. Since I discovered the ESP I have not used my Arduino! I'm happy to help at any time.
@asiw8 жыл бұрын
I have subscribed so looking forward to your next video. I was always struggling to keep my code small enough to fit into the Arduino. 4M is fantastic - I'll see if I can fill it!!
@sonsofknowing75287 жыл бұрын
having issues with the compile mainly Arduino: 1.6.13 (Windows 7), Board: "WeMos D1 R2 & mini, 80 MHz, 921600, 4M (3M SPIFFS)" sketch\Sd2Card.cpp: In member function 'uint8_t Sd2Card::init(uint8_t, uint8_t, int8_t, int8_t, int8_t)': Sd2Card.cpp:302: error: cannot convert 'volatile uint32_t* {aka volatile unsigned int*}' to 'volatile uint8_t* {aka volatile unsigned char*}' in assignment clkport = portOutputRegister(digitalPinToPort(clockPin_)); ^ Sd2Card.cpp:304: error: cannot convert 'volatile uint32_t* {aka volatile unsigned int*}' to 'volatile uint8_t* {aka volatile unsigned char*}' in assignment mosiport = portOutputRegister(digitalPinToPort(mosiPin_)); ^
@G6EJD7 жыл бұрын
Which library are you using? And from where?You need to be sure your SD.h library supports ESP8266github.com/esp8266/Arduino/blob/master/libraries/SD/src/utility/Sd2Card.cppYou have installed ESP8266 support in your IDE?
@airbrushernst8 жыл бұрын
Hi Tnx for your video explenation. I looked at the code on your Github page. I think I understand it all butt... How does ''server.handleClient(); " Start the index.htm on the SD card? With "server.on()" you start a void. With "//server.on("/",[] {}, handle_root); " you could start a start screen but you comment it out. Please help Gr Ernst
@G6EJD8 жыл бұрын
There are links to index.htm in the html code and they are invoked from the code generated HTML first page, so index.htm can only be accessed indirectly if you like. The only way I know how is to construct / call an index.htm line by line is to construct it line by line then send that page e.g. webpage += "" webpage += "webpage += "html>and so on then send with server.send("text/html", webpage);The Arduino does not support what I would call stream of files like index.htm. But once at index.htm you can run a full size website as my example shows.if you use server.on("/",[] {}, handle_root) then it will direct programme flow to the handle_root function where you would begin the webpage construction (of index.htm) and then send that as above.
@jellykomblog91906 жыл бұрын
Thank you for the video, it's very helpful
@Gaatech8 жыл бұрын
nice video
@MrBobWareham7 жыл бұрын
Your sound quality is poor it sounds as if you have a motor running and the volume is low but I did like the video was most interesting with the stack thanks
@G6EJD7 жыл бұрын
Yes I had a microphone fault and did not check the video before upload, but I did enhance the audio a bit on this version: kzbin.info/www/bejne/oZjMnpyIds5-iLc Later on in my video series I released a general purpose web-server with configurable pages that might be worth a look.