ESP8266 Web Server Step-By-Step Using Arduino IDE (Mac OSX and Windows)

Поделиться
HTML-код
  • Опубликовано: 14 янв 2025

Комментарии • 474

  • @jose-azevedo
    @jose-azevedo 4 года назад +14

    After going through at least 30 tutorials on RUclips, yours was the first one that went step by step and made me understand a bit what each of these commands do, thank you very much Cisco!!

    • @datasith
      @datasith  4 года назад +1

      Hey José. I'm so very glad it could help, thanks so much for letting me know. It keeps me motivated knowing that people find this stuff useful!

  • @allersvp
    @allersvp 6 лет назад +4

    after many other RUclips videos i though i have to ready full books myself to understand .. till i got to your videos (calm and step by step) ... now i understand everything.... you are the EVER BEST ... thanks bro

    • @datasith
      @datasith  6 лет назад

      No worries, thank you for watching. It makes me happy you found it useful, and it helped you on your projects!

  • @tdumnxy
    @tdumnxy 8 лет назад +32

    Excellent video, interesting and useful content and very well presented. Well done and thanks.

    • @datasith
      @datasith  8 лет назад +5

      Thanks for the kind words, Stephen! We're working hard on producing content that's useful for people interested in DIY Electronics. Glad to hear that our efforts are paying off :)

    • @brandondaniels9471
      @brandondaniels9471 8 лет назад +4

      Yes, it's definitely the best ESP8266 video I've seen. And, trust me, I've seen nearly every one of them and none of them are this helpful and easy to understand. LOL! :-)

    • @palashpalpattuwar87
      @palashpalpattuwar87 6 лет назад

      Can't we directly assign the web server duty to nodemcu, without using an AP? Can't we assign an IP address by ourselves to Esp?

    • @datasith
      @datasith  5 лет назад +1

      @@palashpalpattuwar87 yes, I describe it on my other videos (Station Mode vs. Access Point).

  • @sayedur
    @sayedur 6 лет назад

    As instructional videos, yours are great! While a lot of other videos assume that the viewer already knows the basics, you took a different and the correct approach of explaning every single necessary detail. I cannot thank you enough!

    • @datasith
      @datasith  6 лет назад +1

      Thank you for the kind words! I'm glad you like them!

  • @abdullahyousef3596
    @abdullahyousef3596 2 года назад

    This is the best tutorial I have seen for this topic.

  • @timecentral3134
    @timecentral3134 6 лет назад

    Very nice video!!! Works with an ESP32 (specifically, I have the ESP-WROOM-32 ESP-32s board) with the only changes being the library names. I had to change ESP8266WiFi.h to WiFi.h and ESP8266WebServer.h to WebServer.h. Thank you so much for the time you take to share this information! The audio is very crisp and clear in this, which makes following along easy. As a bonus, now that I have it working, the family is impressed and excited for it's applications (remote control custom lights / remote cat treat dispenser). Thanks once again!

    • @datasith
      @datasith  6 лет назад

      Thanks for the compliment, I'm glad you found the content useful! Thanks so much for sharing details about your project, it makes me happy that you got it done as well as gathered interest in your project from the fam. If you ever post projects online, let me know and I'd be happy to take a look!

  • @flyindon
    @flyindon 7 лет назад +3

    Best tutorial I have found. Very clearly explained, plus I really like the method of toggling the LED.

    • @datasith
      @datasith  7 лет назад

      We're glad to hear you're finding the content useful! Thanks for the kind words :)

  • @walterwinnipeg7350
    @walterwinnipeg7350 7 месяцев назад

    Wow! A really excellent video. I really liked your technique of building and testing your code one step at a time, to incrementally verify that each feature you added was working correctly. Bravo!

  • @andrejcupac7359
    @andrejcupac7359 5 лет назад

    Best video ever...thank you so much. 1million times better than any other wifi module type tutorial video. Clear, simple, and easy to follow along with. Definitely subscribing to you.

    • @datasith
      @datasith  5 лет назад

      Thanks for the kind words, Andrej. I'm glad you found the content useful!

  • @agustinsida8877
    @agustinsida8877 3 года назад

    i made a webserver for a 3d printer thank to you, thanks man..gonna donate when im able to

  • @SuperNathanTube
    @SuperNathanTube 4 года назад

    I have so far listened to two videos on ESP webservers and I am starting to like your way of presenting. Good job !!

  • @asheerali2376
    @asheerali2376 5 лет назад

    presumably, the most useful tutorial on youtube for me

    • @datasith
      @datasith  5 лет назад

      Thanks for the kind words, it makes me happy you find the content useful!

    • @asheerali2376
      @asheerali2376 5 лет назад

      @@datasith plz upload a video for transmiting and receiving at the same time from the web server

    • @asheerali2376
      @asheerali2376 5 лет назад

      @@datasith and can i communicate with a web server using multiple IOT's

  • @patfacunla1687
    @patfacunla1687 4 года назад +4

    The best tutorial i have seen for a while
    This one is a hidden gem on RUclips.
    This guy deserve a million subs!!!

  • @arshkfilms8656
    @arshkfilms8656 5 лет назад +1

    Simple precise and accurate cant ask for more. Such a great tutorial.

    • @datasith
      @datasith  5 лет назад +1

      ArshKFilms thanks for watching my vids. I’m glad you’ve found them useful!

  • @mowtown75
    @mowtown75 2 года назад

    Clear and concise, thanks great intro to wifi and webservices.

  • @ryanshelton4545
    @ryanshelton4545 5 лет назад +1

    Fantastic instructions. Thank you for being so detailed.

    • @datasith
      @datasith  5 лет назад

      I'm glad you found them useful, Ryan. Thanks so much for watching!

  • @xavierb1431
    @xavierb1431 7 лет назад +9

    Great tutorial! Just annoying how when you're typing code, the camera keeps cutting to you... hard to stop at the right moment and copy your code. When you're typing code, keep the camera on the screen! :D

    • @datasith
      @datasith  7 лет назад +4

      The entire code snipped is on Github, the video is not meant as a screencast -- plenty of those out there. Plus, we love to see Cisco on camera /s

    • @sendittozach
      @sendittozach 3 года назад

      Was about to say, code link is in description :)

  • @salmanalotaybi1048
    @salmanalotaybi1048 4 года назад

    Well done!!
    Do you have any experience on Photon??

  • @HellaFunnyShorts
    @HellaFunnyShorts 5 лет назад

    Just the video i was looking for. Very informative.

    • @datasith
      @datasith  5 лет назад

      Glad you found it useful!

  • @LuisPa247
    @LuisPa247 4 года назад

    Excellent video, simple, powerful, detailed.

  • @ThatsAllStuff
    @ThatsAllStuff 7 лет назад

    Jesus. I search for so long time for a tutorial that explain it so easy. Thanks dude

    • @datasith
      @datasith  7 лет назад +1

      Lol, glad you found it useful brotha!

  • @VocasoGK
    @VocasoGK 6 лет назад

    I love your series on ESP8266!

    • @datasith
      @datasith  6 лет назад

      Thank you! More episodes coming soon :)

  • @Civitenko
    @Civitenko 8 лет назад

    These videos are giving me all the useful tools that I need for my projects. Well done !

    • @datasith
      @datasith  8 лет назад

      Glad to hear you find them useful! Thanks for watching :)

  • @allersvp
    @allersvp 5 лет назад

    i have been searching for such step by step tutorial ... thanks sooooo much very helpful

    • @datasith
      @datasith  5 лет назад

      No worries. I'm glad you found it useful!

  • @bernhardkeppner6239
    @bernhardkeppner6239 8 лет назад +1

    Very well done. I like the way you present your stuff. Thanks!!!

    • @datasith
      @datasith  8 лет назад

      Thanks for the kind comment, it's a team effort :) More vids coming your way!

  • @sameerkulkarni4023
    @sameerkulkarni4023 6 лет назад

    Excellent and crystal clear explanation. Thank you.

    • @datasith
      @datasith  6 лет назад

      I'm glad you liked it! Thanks for stopping by!

  • @vaishakhmonti
    @vaishakhmonti 7 лет назад

    The presentation and content were fantastic. Neat, clean and very well done indeed

    • @datasith
      @datasith  7 лет назад

      We're glad you liked it! Stay tuned for more :)

  • @ExplainingMathematics
    @ExplainingMathematics 8 лет назад

    Mate you have explained the question i had for years, cheers. SUBSCRIBED!!!

    • @datasith
      @datasith  8 лет назад

      GODisONE MANisDUMB haha that's awesome! Glad we could help, thanks for the sub!

  • @garygreen3141
    @garygreen3141 5 лет назад

    WOW, I have tried other tutorials and had no success, but this has been explained clearly, now it WORKS and i understand it. Fantastic well done. Thank you

    • @datasith
      @datasith  5 лет назад

      This makes me happy to hear, Gary! I'm glad you found it useful!

  • @meggrobi
    @meggrobi 7 лет назад

    Very clear concise and informative

    • @datasith
      @datasith  7 лет назад

      Thanks for the kind words, we're glad you found it useful!

  • @maxim25o2
    @maxim25o2 2 года назад

    Super tutorial! Great job, thank You.

  • @capiberra4118
    @capiberra4118 8 лет назад +1

    Very useful info and well presented. Thanks!

    • @datasith
      @datasith  8 лет назад

      Thanks for the kind comment, glad you liked it!

  • @SimonSemore
    @SimonSemore 6 лет назад +3

    Great tutorial, thank you so much for your videos. You really explain all of the functions and jargon in the code and make it much easier to learn. I like your esp8266 OTA video very much also. In that video you referred to your next video being able to send code via OTA at any time without needing to reset. I'm struggling to figure out how to update code.
    For example I'd like to add new firmware to update my led controllers to change virtual pin settings etc.

    • @datasith
      @datasith  6 лет назад

      Thanks so much for the kind comment. It makes me really happy that you find the content useful!
      Funnily enough, I'm working on the second OTA video right now, and should have it published next week-a few viewers are waiting for it, so I'll put in my best effort and hope you all like it!

  • @VIPINKUMAR-wr7mn
    @VIPINKUMAR-wr7mn 5 лет назад

    Thanks Sir to clear every step , how and why we write methode and objects in code. This helps me lot

    • @datasith
      @datasith  5 лет назад

      Thanks for the kind comment, I'm glad you found the video useful!

  • @hrsfic
    @hrsfic 6 лет назад

    A quality video, extremely useful for a beginner like me

    • @datasith
      @datasith  6 лет назад

      Awesome! I'm glad you found it useful!

  • @abhishekpaithankar2868
    @abhishekpaithankar2868 7 лет назад

    Excellent video and very well presented. Keep up the good work.

    • @datasith
      @datasith  7 лет назад

      Thanks for the kind words! We're glad you liked it :)

  • @danielbob7769
    @danielbob7769 4 года назад

    Hey man , Good bless you , you helped me so much !

    • @datasith
      @datasith  4 года назад

      Haha, thanks so much. I'm glad I could help!

  • @anthonycalia1317
    @anthonycalia1317 7 лет назад

    Excellent explanation of a topic that has eluded my understanding. Nice job, Thanks!

    • @datasith
      @datasith  7 лет назад

      Thank you so much for the kind words, we're very glad you found it useful!

  • @AdamoMorone
    @AdamoMorone 7 лет назад

    Excellent! This was very helpful, thank you very much!

    • @datasith
      @datasith  7 лет назад

      Thanks for watching!

  • @7Trident3
    @7Trident3 2 года назад

    Still an excellent tutorial in 2022!

  • @mikekim5135
    @mikekim5135 5 лет назад

    Great tutorial! Thank you for providing such a thorough step-by-step process that is very easy to understand and follow. Cheers!

    • @datasith
      @datasith  5 лет назад

      thanks for the kind comment, mike! i'm glad you found it useful :)

  • @chrissimpson4436
    @chrissimpson4436 2 года назад

    Thank you very much for so many good instructional videos.... Great stuff

  • @jix177
    @jix177 8 лет назад

    Very clearly explained. Well done.

    • @datasith
      @datasith  8 лет назад

      Thank you so much, glad you're finding our content useful!

  • @MrBobWareham
    @MrBobWareham 5 лет назад

    Loved it thanks you as always very clear to follow, you are a good tutor

    • @datasith
      @datasith  5 лет назад

      Thanks for the kind words, Bob. I'm glad you liked the content!

  • @elihaviv7715
    @elihaviv7715 6 лет назад

    Thanks, excellent vide, you are a great teacher

    • @datasith
      @datasith  6 лет назад

      Thanks for the kind comments, I'm glad you found it useful!

  • @TomStratton
    @TomStratton 8 лет назад +6

    Thanks for an excellent tutorial. Your training method is precise, clear and easy to follow.
    Tom (from UK)

    • @datasith
      @datasith  8 лет назад

      Tom Stratton, thank you for the kind words! We're glad you're finding them useful!

  • @willydoesminecraft
    @willydoesminecraft 6 лет назад

    great tutorial learned a lot. Thank you so much

    • @datasith
      @datasith  6 лет назад

      Thanks for the kind comment, and for stopping by my channel!

  • @bindhumounika2994
    @bindhumounika2994 6 лет назад

    It's very helpful for beginners . Thank you sir!!

    • @datasith
      @datasith  6 лет назад

      Thank you for your kind words! We're very glad you liked it :)

  • @steve8939123
    @steve8939123 7 лет назад

    thanks for the info. Great video.

    • @datasith
      @datasith  7 лет назад

      We're glad you found it useful! Thanks so much for the kind words!

  • @SanjivVenkatram
    @SanjivVenkatram 5 лет назад

    Greetings and thanks very much for sharing. Very well delivered and easy to follow! Thanks again!

    • @datasith
      @datasith  5 лет назад

      Thanks so much for the kind comment, Sanjiv. I'm glad you found it useful!

  • @CyberCookieMonster
    @CyberCookieMonster 6 лет назад +1

    Thanks for the videos. They are very helpful. The use of 204 response code instead of 200 was very useful. The logic in your script is by far the easiest to understand. What I need now, though, is a way to have a html link or button trigger the toggleLED function instead. I want the page to offer the same functionality, but without typing into the URL or having to build a client side phone app. I only need about 10 buttons and it seems I can reuse whatever logic is needed. Thanks!

    • @CyberCookieMonster
      @CyberCookieMonster 6 лет назад +1

      BTW, I am your patron. :)

    • @datasith
      @datasith  5 лет назад +1

      Sorry I missed this comment, RUclips finally lets us sort by "Comments I haven't responded to" so I'm going through the list. Have you looked at the Websockets videos? It's by far the easiest way to get data back and forth from a web client and the ESP8266 (ruclips.net/video/ROeT-gyYZfw/видео.html). Let me know if you can adapt the code to your needs, or otherwise I can give you a better example. Feel free to ping me on Patreon any time!

  • @torquebiker9959
    @torquebiker9959 5 лет назад

    Great tutorial, thank you very much!

    • @datasith
      @datasith  5 лет назад

      I'm glad you found it useful, thanks for the kind comment!

  • @phucnguyen2k
    @phucnguyen2k 7 лет назад

    great tutorial for learning esp8266. Thumbs up thumbsup. I just got stuck by playing your tutorial from 1-9... lol . But it was fine when i tried to see the last video.

    • @datasith
      @datasith  7 лет назад

      Thanks! Glad you like our contend. Much more coming soon!

  • @a14266
    @a14266 8 лет назад +1

    Thanks for the informative video,
    May i know why do you have to use Terminal Vi to write the coding ? Why can't just directly type into the Arduino IDE ?

    • @datasith
      @datasith  8 лет назад +1

      Heya! Thanks so much for watching and for the kind words.
      It's a matter of preference. We use Vim for a lot of different tasks (e.g., when working on our remote servers) so we're very familiar with it. Other popular text editors for programmers/developers include Sublime Text. However, the Arduino IDE's built-in editor works great too! Note that as your programs become more complex, the external editors have functionality that makes life a lot easier.

  • @mipi808
    @mipi808 8 лет назад +8

    Excellent tutorial!
    Just one question; Is there a specific reason why you use external editor with Arduino IDE?

    • @petermatthiesen8288
      @petermatthiesen8288 8 лет назад

      Exatcly. Why? I also would like to know . . .

    • @datasith
      @datasith  8 лет назад +2

      Hey, Mikko. Using a full-feature editor can be useful when writing longer programs, but it's only a matter of preference. I like *Vim* because all editing operations can be done using keystroke combinations, and I've been using it for a looooong time. These days, a popular one to try is *Sublime Text* if you'd like. Thanks for watching!

    • @datasith
      @datasith  8 лет назад +1

      Hey, Peter. Mostly a matter of preference and habit as you can see in the previous response. Thanks for watching!

  • @heaventouchasmr8293
    @heaventouchasmr8293 5 лет назад

    Wow explained really good...I like that

  • @deepakbasty7694
    @deepakbasty7694 4 года назад

    Hii your video was good enough to understand..Iam new at this .
    I have a doubt in line no:-22(8:45)
    what is the use of "[] ()"

    • @datasith
      @datasith  4 года назад

      I'm glad you liked it. "[]()" is part of the syntax used in C++ for using "anonymous functions". HTH!

    • @deepakbasty7694
      @deepakbasty7694 4 года назад

      @@datasith What is the use here in the function .That iam not getting that.??

  • @jaydipkarar
    @jaydipkarar 8 лет назад

    you have to be in the same router or can be accessed from anywhere?

    • @datasith
      @datasith  8 лет назад +1

      For this demo you have to be on the same router. In future videos we'll show several ways for accessing the ESP8266 from anywhere! Thanks for watching!

  • @igor_tomljanovic
    @igor_tomljanovic 8 лет назад

    Perfect! Thank you very much!!

    • @datasith
      @datasith  8 лет назад

      Igor Tomljanovic, thanks for watching!

  • @piotrostrowski9080
    @piotrostrowski9080 4 года назад

    Thanks for great start with ESP8266 :)

  • @pixelpappede
    @pixelpappede 2 года назад

    Simple, precise and accurate :-) Perfect, but one private whish: don't use any background-music for yor future videos :-)

  • @barryblack1411
    @barryblack1411 8 лет назад

    Hi, I am pretty much a beginner at this and am having problems compiling 'simple_webserver' right off the bat at 3:20 of your video. I get the message: stray '#" in program, although I have typed it exactly as you show in the video. I have checked to make sure that I have the correct board selected.
    Any help would be appreciated. Thanks in advance.

    • @datasith
      @datasith  8 лет назад

      Heya, we're glad to hear you're on the way to mastering the art of coding, Barry! Do/Did you have a space between the # and the letter "i" perhaps?

    • @barryblack1411
      @barryblack1411 8 лет назад

      Hi,
      I have tried it both with and without a space and still get the error. I am using terminal on my mac and am typing in the line numbers so that it looks exactly the same as yours on the screen. Could this perhaps be part of the problem? The line numbers on yours seem to appear magically :)

    • @datasith
      @datasith  8 лет назад

      Nice! You've debugged your own code :) The line numbers are indeed marked in automatically by the text editor that is used, but they shouldn't be added manually to the code. We use Vim, but there's another nice editor called Sublime Text that you can use, otherwise, the Arduino IDE has a built-in editor that you can use. It's only a matter of preference, try them out and see what you think.

    • @barryblack1411
      @barryblack1411 8 лет назад

      Thanks, I used Sublime which worked well although I did find it necessary to open the file in Terminal to invoke the Arduino program and compile. Is this normal or did I miss something which would have let me go directly from a new tab in Sublime to the compiler?

    • @datasith
      @datasith  8 лет назад

      Hmm, there are some editors that allow integration with the underlying compiler (avrdude), but I don't think Sublime is one of them. The Sublime + Arduino IDE works great, and is similar to what we've used for a long time so we highly recommend it!

  • @FilmFactry
    @FilmFactry 7 лет назад

    Excellent tutorial. Very clearly presented. Do more:-) Thanks!

    • @datasith
      @datasith  7 лет назад

      Thanks for the kind words, we'll get back to it soon enough!

  • @Brandon-youtube
    @Brandon-youtube 8 лет назад

    Was there any reason you avoided using an if statement?

    • @datasith
      @datasith  8 лет назад

      Where exactly? Probably trying to save up time if nothing else :)

    • @Brandon-youtube
      @Brandon-youtube 8 лет назад

      I believe you wrote a digitalRead inside a digitalWrite (or vice versa) just wondering why you said to avoid an if statement

    • @datasith
      @datasith  8 лет назад

      Oh, yep, it just saves a line of code (at least) and maintains overall readability. Good catch!

  • @aar_ash
    @aar_ash 7 лет назад

    Hey there! good video but I have a question, can we send HTML as a response instead of plain text?

    • @datasith
      @datasith  7 лет назад

      Yup, you can change the type inside the function call and use HTML inside the returned string. HTH!

  • @kiby4912
    @kiby4912 4 года назад

    What does []() mean 8:44

    • @datasith
      @datasith  4 года назад

      it's a way to use a function in place without giving it a name. for more info, feel free to look up "anonymous function c++". thanks for watching!

  • @jakesanchez3552
    @jakesanchez3552 7 лет назад

    Thank you for this tutorial! Its like you read my mind and told me only what i needed to know lol, the wifes oven is going to be wifi controlled now, the control board went bad, way cheaper to use one of these than a new board.

    • @datasith
      @datasith  7 лет назад +1

      That's awesome! Glad you found the tutorial useful. Upward and onward to (IoT) world domination!

  • @victorcharlie
    @victorcharlie 8 лет назад +1

    Really Awesome video, man. Subbed! I've picked up two ESP8266 to help me control my garage door via wifi and to show me the status of my garage doors whilst I'm away. (to my phone). Still need to get the fundamentals down though.

    • @datasith
      @datasith  8 лет назад

      Thanks Vik, glad our team's effort has been useful to you! Fun projects like those you mention are definitely in the queue. As you've realized though, we're making sure we post stuff that covers the fundamentals first :)

    • @gibo588
      @gibo588 8 лет назад

      github.com/esp8266/Arduino/blob/master/doc/esp8266wifi/server-examples.md
      The link above will explain all you need for this project. Just change the
      String(analogRead(A0)) to a pin input for status of your garage door limit switch.
      Function below is the response of the ESP8266 as server to the client.
      String prepareHtmlPage()
      {
      String htmlPage =
      String("HTTP/1.1 200 OK
      ") +
      "Content-Type: text/html
      " +
      "Connection: close
      " + // the connection will be closed after completion of the response
      "Refresh: 5
      " + // refresh the page automatically every 5 sec
      "
      " +
      "" +
      "" +
      "Analog input: " + String(analogRead(A0)) +
      "" +
      "
      ";
      return htmlPage;
      }

    • @datasith
      @datasith  8 лет назад

      Thanks for sharing that info, Gilbert!

    • @basedonprinciple
      @basedonprinciple 6 лет назад

      @@gibo588 Error 404!

  • @TechnoEveryday
    @TechnoEveryday 2 года назад

    🆒 Excellent video! Thanks from whole 🇵🇰

  • @Thonss
    @Thonss 4 года назад

    thanks for your clear tutorials! I'm trying to add web functionality to my ESP8266 and these videos help a lot.
    However, I have noticed that I don't need to add the ESP8266WiFi.h to my sketch, only adding ESP8266WebServer.h works too. Do I really need the ESP8266WiFi.h?

  • @jayarajvs7541
    @jayarajvs7541 4 года назад

    Great way of explanation

  • @imtiaziqbal3041
    @imtiaziqbal3041 7 лет назад

    You are awesome teacher. I like the way your explain things. Thank you and God bless you.

    • @datasith
      @datasith  7 лет назад +1

      It encourages us to keep working hard knowing that you're finding the content useful. Thanks again, Imtiaz!

    • @imtiaziqbal3041
      @imtiaziqbal3041 7 лет назад

      I tried this and everything seem to have gone very well and i see the ip address on the serial monitor. However, when i goto IE and Chrome and type the ip adress it is not responding. wondering what i am doing wrong.... Thanks

    • @datasith
      @datasith  7 лет назад

      Hmm that's strange. In your computer is connected to the same Wi-Fi network, you should be able to navigate to esp8266.ip.address/ using the ip address you're seeing and the browser should display the "Hello World" message. If you try the /toggle path, then nothing occurs on the browser, but the LED should toggle on and off. Hope that helps!

  • @1CoreGame
    @1CoreGame 5 лет назад

    Can i also save that data automaticly in a file?

    • @datasith
      @datasith  5 лет назад

      Yup, see my other videos on SPIFFS for creating files in the flash memory of the ESP8266.

  • @semestajaya9213
    @semestajaya9213 7 лет назад

    Excellent video. Your video has led me to buy a module for experiment. Now the question comes, for working in Arduino environment, what firmware or bootloader that I need to install to the ESP8266 board? Where could I download the bootloader and firmware file for this purpose? TYIA...

    • @datasith
      @datasith  7 лет назад

      The Arduino IDE allows you to upload your own firmware (the code that you write). You don't need a bootloader or a pre-compiled firmware file. Check out our other videos for how to get started. Thanks for watching!

    • @semestajaya9213
      @semestajaya9213 7 лет назад

      Gotcha. Thanks...

  • @larrypoorman2300
    @larrypoorman2300 6 лет назад

    Excellent tutorial but because I am a greenhorn you caught me up on one thing and it took me a day of searching to find my mistake. The mistake was that in order to get the "toggle" to work one has to enter the ip address/toggle on the browser and not just the ip address alone. Nonetheless keep up the great tutorials!

    • @datasith
      @datasith  6 лет назад

      Thanks for the kind words, Larry! I'm glad you figured it out; upward and onward! :)

    • @juhopeltola3993
      @juhopeltola3993 5 лет назад

      I can't get to my ip/toggle. Browser says denies to answer. Wats wrong in my project? Just ip says hello.

  • @KiraguMacharia
    @KiraguMacharia 6 лет назад

    organised work
    good, keep up

    • @datasith
      @datasith  6 лет назад

      Thank you! I'm glad you found it useful.

  • @californiascapes
    @californiascapes 5 лет назад

    What is the point of editing text in the Terminal when Arduino IDE has a Syntax-aware editor?

    • @datasith
      @datasith  5 лет назад

      It gives you a reason to make this comment.

    • @poruatokin
      @poruatokin 3 года назад

      @@datasith You sound like an utter jerk

  • @TheKatandFriends
    @TheKatandFriends 8 лет назад

    Hello, I've been having some trouble getting things working on my ESP. I have a version 1 board connected to an arduino that is connected to the USB port. Is there anyway around this? Will I need to get some other form of USB connection to the ESP Module so that I can upload this to it directly? and if I do will I be able to control my arduino with the functions in the same way?
    The reason I'm using an arduino uno is because I have a motor shield attached and my final goal will be to control a stepper motor from a remote location.
    Thank you, awesome video... one of the clearest I've found on explaining the ESP Module and the Wifi library.

    • @datasith
      @datasith  8 лет назад

      Thanks for the kind words!
      The ESP-01 doesn't have a built-in USB-to-Serial chip so you'll always need either an Arduino or a dedicated board for this functionality. Alternatively you could use Over-The-Air (OTA) programming for loading your sketches to the ESP-01 without a wired connection.
      If instead of using an Arduino Motor Shield you switch to a standard Motor Controller breakout board you can wire it to the ESP8266 and eliminate the need for the Arduino altogether. There's nothing wrong with your current setup, but our suggestion will simplify things a bit, having to worry only about a single microcontroller!

  • @cliant1
    @cliant1 7 лет назад

    Nice video great background music in the intro part which one is that?

    • @datasith
      @datasith  7 лет назад

      Can't remember the exact name of the track, but it's made by the awesome audionautix.com/. Thanks for watching and for your kind words!

  • @anidea8012
    @anidea8012 5 лет назад

    Can u put a video for pulse sensor

    • @datasith
      @datasith  5 лет назад

      I will add it to the list! Thanks for watching!

  • @TheScienceUniverse
    @TheScienceUniverse 6 лет назад

    Thanks for this awesome tutorial...Me too also use Vim in Linux & Mac to code

    • @datasith
      @datasith  6 лет назад

      Thanks for the kind words, I'm glad you liked it!

  • @josefposolda9736
    @josefposolda9736 7 лет назад

    Hi, very nice tutorial. You mentioned that we can connect an other hardware and I wonder if there is a chance to connect USB laser printer, so I can use it as a network printer? If so, what is need it, how exactly it can communicate? Thank you very much for your tutorials and looking forward to see more.

    • @datasith
      @datasith  7 лет назад

      For this, the easiest way would be to use a Raspberry Pi, which gives you an entire Operating System for high level operations like network sharing and such. Best of luck!

  • @lavsmaster
    @lavsmaster 5 лет назад

    Очень подробная инструкция. Thank you ! 😀

  • @alvaroportela85
    @alvaroportela85 8 лет назад

    it's realy helps me a lot

    • @datasith
      @datasith  8 лет назад

      Awesome to hear, Alvaro!

  • @selmanyalcinn
    @selmanyalcinn 5 лет назад +2

    how can ı run a web server on a static ıp

    • @datasith
      @datasith  5 лет назад

      Check my video on how to use the ESP8266 as an access point. Note that the static IP will be local to your network.

  • @thomasalexander1563
    @thomasalexander1563 7 лет назад

    Amazing tutorial,,,
    Make more ESP8266,,
    It's hard to find good tutorial about ESP8266..
    This channel will soon grow more subscriber...

    • @datasith
      @datasith  7 лет назад

      Thanks for the kind words, Thomas. We're glad you liked it!

  • @ubhare
    @ubhare 7 лет назад

    Hi Cisco... Your tutorals are best and on point. Easy to understand.
    I want to know if we can send an empty response in this method" server.send(200, “text/plain”, “Other URL”); "
    I do not want to take client to anyother page but to keep on the same.
    Your help will be really appreciated.

    • @datasith
      @datasith  7 лет назад

      Yes you can, you can use the HTTP code 204 for an empty response "". Thanks for watching, and for the kind words!

  • @MrBobWareham
    @MrBobWareham 4 года назад

    I love your videos you talk at a good speed with a good description of the code you are writing but I don't know if it is me but your text is blue on a black background and it is very hard to see so it makes it hard to follow your code? thanks, Bob

  • @merwynvincent
    @merwynvincent 5 лет назад

    Does this code work with Nodemcu esp8266 12e

  • @revetastogne
    @revetastogne 7 лет назад +1

    Thank you for such a great tutorial!
    Could you please also let me know where I can find documentation on ESP8266WebServer? (because Arduino IDE doesn't have autocomplete, I need to now which functionality I'm able to use and how)

    • @datasith
      @datasith  7 лет назад

      github.com/esp8266/Arduino/tree/master/libraries/ESP8266WebServer
      Thanks for watching!

    • @revetastogne
      @revetastogne 7 лет назад

      Thank you!

  • @bgable7707
    @bgable7707 4 года назад

    Sweet!!!, on/off code trick using "!" in digitalWrite(pin_led, !digitalRead(pin_led)); I came across this in another snippet of your code and was scratching my head about it's purpose. Really helped to have you confirm what it was doing. Thanks!!!

  • @wogalwogal
    @wogalwogal 6 лет назад

    Great Video Thank You

    • @datasith
      @datasith  6 лет назад

      You're very welcome! I'm glad you liked it.

  • @rusty_junk
    @rusty_junk 3 года назад

    I know I'm late to the party but why use an external editor? It looks like your just using the equivalent to a Windows command prompt window?

    • @poruatokin
      @poruatokin 3 года назад

      I just asked the same question. Seems dumb and more potential for typos.

  • @L-36
    @L-36 7 лет назад

    Excellent. I should have started here instead of the other one I commented on. +1

  • @janakchadha8772
    @janakchadha8772 7 лет назад

    Hi, I had a small question.
    I have a larger code running on my ESP8266 module. I'm using a webserver to send a request to toggle an led as well. This seems to work fine when the program contains code for only this.
    When I integrate it into my bigger program and try to toggle the LED, it doesn't. I believe this is because I don't exactly know how handleClient method works. Can you help me out? It is kinda urgent.

    • @datasith
      @datasith  7 лет назад

      Can you send us the code over email, there are many possibilities and not enough information to even make an educated guess :-/ Thanks for watching though, we're glad that at least part of the code is working :)

    • @javijee_
      @javijee_ 7 лет назад

      Janak Chadha You cannot say its kinda urgent!! are hou kidding??? . These peopke are not working for you. They do it for free and you didn't even thank them for this excellent piece of work.

    • @janakchadha8772
      @janakchadha8772 7 лет назад

      Hey!
      I'm really sorry about that!
      I was in the middle of a project submission fiasco and probably wrote the comment in a hurry. I really appreciate their work and think that my project would not have been possible without their help. As for the 'urgent' part, it was by no means said in an authoritative way. It was a humble request to help me out at the earliest, if possible. Anyway, hope that clears things out. Thanks again for your work and great tutorials.

  • @markminczanowski5799
    @markminczanowski5799 8 лет назад

    How did you save the terminal .ino script?

    • @datasith
      @datasith  8 лет назад +2

      Hi, Mark! I was using a Text Editor inside the terminal called Vim (www.vim.org/). I simply opened a new file by typing *vi simple_webserver.ino*. Then, I used the command line inside that program to save the file. It takes some getting used to but it's a great Text Editor!

    • @markminczanowski5799
      @markminczanowski5799 8 лет назад +4

      You are the best, you reply to every comment with meaningful and positive information. RUclips is lucky to have you ;)

    • @datasith
      @datasith  8 лет назад +3

      Mark Minczanowski thanks for the kind words! With viewers like you and the other commenters, it's easy for us to keep making great content and trying to help as much as we can :)

  • @jokripit8292
    @jokripit8292 7 лет назад

    Thank you for this very nice and clear video. When I tested the WiFi connection, on the serial monitor, i could see the dot point endlessly showing up but no IP adress appearing, could it mean a problem with the WiFi on my nodeMCU?

    • @datasith
      @datasith  7 лет назад

      Yup, that usually means that there was something wrong with your credentials (ssid/password). That's not the only reason, but definitely the lack of IP address indicates that the ESP8266 hasn't connected to the router yet!

  • @wilwad
    @wilwad 6 лет назад

    Lovely tutorial bro

    • @datasith
      @datasith  6 лет назад

      Thanks for the kind comments, boss. I'm glad you liked it!

  • @SashNone
    @SashNone 8 лет назад

    Hi, tell me please, what benefit of using 204 code instead 200? Just curious.

    • @datasith
      @datasith  8 лет назад +1

      Hey! The main difference is that a 204 response doesn't redirect the client. You'll notice that your browser doesn't attempt to load a new page is it receives a 204 response from the ESP8266. Thanks for watching!

  • @francescofabbro3543
    @francescofabbro3543 7 лет назад

    Hi, first of all congratulations for the videos, very complete.
    I have only one question... I cannot make it to install the library ESP8266Wifi...

    • @datasith
      @datasith  7 лет назад

      The library is automatically installed when you add support for the ESP8266 board in the Arduino IDE. Make sure you select one of the ESP8266 boards from the menu before compiling/uploading the code. When you do this, the Arduino IDE 'knows' where to find the library. Thanks for watching!