API request in Micropython | WiFi Station & Access Point Mode | urequests

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 มิ.ย. 2024
  • This episode will guide you with interfacing WiFi on ESP32 board using Micropython from very basics. And in the end, we made a very interesting IoT project of requesting Blynk APIs using Micropython to control our home appliances
    To try out free trial version of Altium, click here - www.altium.com/yt/techiesms
    You can support me🙏🏻 and also get benefitted on Patreon :- / techiesms
    Subscribe now💪🏻 to watch some amazing videos coming up soon.
    bit.ly/techiesms_youtube
    __________________________________________________________
    👨🏻‍💻 Important Links 👨🏻‍💻
    Codes used in this video - bit.ly/30Mzjbr
    __________________________________________________________
    Now you can get free PCB with every order of techiesms T-shirt or techiesms pocket notebook.
    You can buy the merchandise from here,
    techiesms.com/merchandise/
    __________________________________________________________
    👀 Other Episodes of this series 👀
    Episode 1 - • Easy to use than Ardui...
    Episode 2 - • OLED display & DHT11 S...
    Episode 3 - • BLE, Interrupts & Time...
    Episode 4 - • API request in Micropy...
    Episode 5 - • Home Automation using ...
    Episode 6 - • Adafruit MQTT Home Aut...
    Episode 7 - • Micropython Script to ...
    __________________________________________________________
    Buy the components for your projects and support techiesms💡🔌
    ESP32 Dev board - amzn.to/3jiwCD6
    ESP32 Module - amzn.to/3g5CKh5
    NodeMCU - amzn.to/2wbzNrZ
    Raspberry Pi 4b - amzn.to/3phsKFN
    Raspberry Pi pico - amzn.to/2RgeSyW
    Arduino MEGA - amzn.to/3vMEkLw
    TTGO TCALL module - amzn.to/2SQG6wH
    Visit my Amazon Storefront for purchasing any components you need for this project or any other project :-
    bit.ly/techiesms-Amazon-Store
    __________________________________________________________
    ⏱ Time Stamps ⏱
    00:00 Introduction to Micropython Series
    00:10 Agenda of Episode 4
    01:46 Do Watch out other episodes of this series
    02:09 Let's start WiFi Scan Example
    02:24 How to check which modules comes builtin in Micropython
    03:45 Testing WiFi scan example script
    04:05 Configuring ESP32 in Access Point mode
    05:40 Testing WiFi Access Point script
    06:44 Configuring ESP32 in Station Mode
    08:38 Testing WiFi Station Mode
    08:50 Modifying the code to not stuck in Infinite while loop
    11:14 Testing the modified code
    12:08 Using urequests module for requesting a Website or API in Micropython
    13:49 Testing the script for requesting Website
    14:54 Explaining script for requesting Blynk APIs to control Home Appliances
    19:19 Testing the Blynk API script in Micropython
    19:47 Working project to control actual Studio Appliances by requesting APIs in Micropython
    20:06 Do give a like to this video, if you are learning something new in this series
    __________________________________________________________
    🎥 🎙 My Video Gear 🎙🎥
    Camera - Canon 750d
    Lens - 50mm f/1.8 STM Lens (amzn.to/32gqnsi), 24mm f/2.6
    Key Light - Godox SL60W (amzn.to/3522mHe)
    Fill Light/Back Light - Osaka Lightning Setup (amzn.to/2I5cdDi)
    Tripod - amzn.to/3uNhC4H
    Microphone - Samson Meteor (amzn.to/32jfVAt)
    Editing - Final Cut Pro X on MacBook Pro ( amzn.to/3vHcSyJ )
    __________________________________________________________
    Get connected with techiesms everywhere..
    Subscribe Main Channel :- bit.ly/techiesms_youtube
    Subscribe Shorts Channel :- bit.ly/techiesms_shorts
    Facebook :- / techiesms
    Twitter :- / imtechiesms
    Instagram :- / techiesms
    Website :- www.techiesms.com
    Telegram - @techiesms
    You can support me and also get benefitted on Patreon :- / techiesms
    __________________________________________________________
    techiesms
    explore | learn | share
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 49

  • @dineshmali_in
    @dineshmali_in 10 วันที่ผ่านมา

    Salute sir for your hard work to make such kind of great tutorial❤

  • @JazonHappyface
    @JazonHappyface ปีที่แล้ว

    Great energy in this video! Helped me a lot to get started on my next project, thank you!

    • @techiesms
      @techiesms  ปีที่แล้ว

      Great to hear!

  • @reyrank2846
    @reyrank2846 2 ปีที่แล้ว

    i start loving it...as usual...salute

  • @christopherigm
    @christopherigm ปีที่แล้ว

    What a great video!!! Thanks a lot!

  • @kionmahuermicio9860
    @kionmahuermicio9860 2 ปีที่แล้ว +3

    Greaaat!!! I love when the projects are Arduino Free. It would be great if you could Make some project with STM32.

  • @smilekarthik
    @smilekarthik 2 ปีที่แล้ว

    Thanks bro I was looking for this

  • @trk9trk968
    @trk9trk968 ปีที่แล้ว

    Thankyou bro now I got a idea about how blyn works

  • @albrody8861
    @albrody8861 2 ปีที่แล้ว +1

    Great video and great help - thanks!

    • @techiesms
      @techiesms  2 ปีที่แล้ว

      You're welcome!

  • @orly1387
    @orly1387 ปีที่แล้ว

    Excellent video. Please your help has an example of how to use urequests with digest authentication. First of all, Thanks

  • @chejo3021
    @chejo3021 10 หลายเดือนก่อน

    great job!!

  • @wellingtonalmeidaguiotti5686
    @wellingtonalmeidaguiotti5686 11 หลายเดือนก่อน

    Thank you for share, do more Content!❤

    • @techiesms
      @techiesms  11 หลายเดือนก่อน

      Thank you, I will

  • @pasindutheshan
    @pasindutheshan 2 ปีที่แล้ว

    Thank you ❤✌

  • @jaivigneshr4483
    @jaivigneshr4483 2 ปีที่แล้ว

    Can you do projects related to augmented reality. That you provided before...

  • @venkatramanakuramapu2125
    @venkatramanakuramapu2125 3 หลายเดือนก่อน

    Hi bro, this video helps me a lot
    one request
    plz provide the button interrupt episode link
    you mentioned in the video 16:20

  • @user-gn8ez9sc1h
    @user-gn8ez9sc1h 2 ปีที่แล้ว

    You are the best!!!👍👍👍👍

    • @techiesms
      @techiesms  2 ปีที่แล้ว

      Wow, thanks!

  • @IsaacBG84
    @IsaacBG84 4 หลายเดือนก่อน

    Hello, i was having problems with request post function crashing after 3 times on ESP32. I was not doing .close() funtion. I will try it. Thanks

  • @mozz6052
    @mozz6052 ปีที่แล้ว

    do you need to be connected to a Wifi to use ''urequests'?

  • @TechTSpirit
    @TechTSpirit 7 หลายเดือนก่อน

    what if in my firmware urequests is not in there? how to install it?

  • @dhruvkachhiya4461
    @dhruvkachhiya4461 ปีที่แล้ว

    I can't be able to use request. text in following code can you help:
    print("sending data to blynk:")
    post_url = URL_post0+str(data_voltage)
    # r = urequests.get(post_url)
    r = urequests.get(url = get_url)
    print(r.status_code)
    get_data = r.text
    print(get_data)
    r.close()
    My code is just stuck at r.text. it does not produce any output or error

  • @keyurpanchal1706
    @keyurpanchal1706 2 ปีที่แล้ว

    Bro, how about making a video about df player mini.

  • @TECHBUSTERNAMAN
    @TECHBUSTERNAMAN 2 ปีที่แล้ว +2

    Wohh!! Now I don't need to learn C for programming my esp's ... I know python 😉😉

    • @kabobz
      @kabobz 2 ปีที่แล้ว

      👍 I will wait for you to learn C so I can teach you the rest of the alphabet. 🤣

    • @TECHBUSTERNAMAN
      @TECHBUSTERNAMAN 2 ปีที่แล้ว +1

      @@kabobz how lame🤮

  • @vivekchauhan7468
    @vivekchauhan7468 2 ปีที่แล้ว +1

    Good information...

  • @Tar651
    @Tar651 ปีที่แล้ว

    import network
    wireless = network.WLAN(network.STA_IF)
    wireless.active(True)
    networks = wireless.scan()
    print(networks) ;
    Traceback (most recent call last):
    File "", line 5, in
    RuntimeError: Wifi Unknown Error 0x0102
    it gave me an error. do you have any idea about the reason?

  • @manoranjansahu1680
    @manoranjansahu1680 3 หลายเดือนก่อน +1

    Can we use both WiFi Station & Access Point Mode simultaneously in ESP32. Please answer my question.

    • @aldenEeaden
      @aldenEeaden 3 หลายเดือนก่อน

      I think no. Just try ut

  • @premthakkar395
    @premthakkar395 3 หลายเดือนก่อน

    what if we dont want to keep a password for access point

  • @sarankumar7751
    @sarankumar7751 2 ปีที่แล้ว

    bro this type of error occured connecting wifi, AttributeError: module 'network' has no attribute 'WLAN'

  • @SPARKELECTRONICS
    @SPARKELECTRONICS 2 ปีที่แล้ว

    How to use ESP32-CAM as QR code reader?

    • @techiesms
      @techiesms  2 ปีที่แล้ว

      nice idea, Will work on It soon...

  • @shahidpinjari4961
    @shahidpinjari4961 2 ปีที่แล้ว +1

    Can you please make a home automation project using Alexa, manual switches and ir remote

  • @rabotarabotovna3157
    @rabotarabotovna3157 2 ปีที่แล้ว +2

    need video with e-Paper disp and micropython

    • @techiesms
      @techiesms  2 ปีที่แล้ว +1

      Will try that out in future episodes

  • @theproudsanatanikafir6656
    @theproudsanatanikafir6656 ปีที่แล้ว

    please sir esp32 as i2c slave

  • @gururajkulkarni460
    @gururajkulkarni460 2 ปีที่แล้ว

    Please make a video on esp32 cam micropython

  • @fiix7026
    @fiix7026 11 หลายเดือนก่อน

    Content starts at 2:04

  • @taranagnew436
    @taranagnew436 2 ปีที่แล้ว

    what can you do with urequests?

    • @techiesms
      @techiesms  2 ปีที่แล้ว

      requesting websites or APIs

    • @taranagnew436
      @taranagnew436 2 ปีที่แล้ว

      @@techiesms in what situation would you want to request a app/url?

    • @smilekarthik
      @smilekarthik 2 ปีที่แล้ว

      @@taranagnew436we can use python or api tools to do the same

  • @abhishekduduskar9307
    @abhishekduduskar9307 2 ปีที่แล้ว

    1st 😆

  • @dhruvkachhiya4461
    @dhruvkachhiya4461 ปีที่แล้ว

    bevkuf mana raha hai bhai
    esa koi API hai hi nahi