Video není dostupné.
Omlouváme se.

ESP32 GET JSON from API - ESP32 GET request from API receive JSON

Sdílet
Vložit
  • čas přidán 18. 04. 2019
  • ESP32 get json from api endpoint through wifi, today we will learn how to perform a get request with an esp32 and receive JSON.
    ESP32 wifi: • ESP32 connect to wifi ...
    API: jsonplaceholde...
    All my code will be available on my Patreon page:
    / 26191735
    www.patreon.com/asali
    Links:
    Sparkfun ESP32 thing
    Affiliate link: amzn.to/2SyQjsm
    Normal link: goo.gl/abAiDf
    Normal ESP32 (cheaper)
    Affiliate link: amzn.to/2GTCHGS
    Normal link: goo.gl/aNXDqi
    Credits:
    Music:
    Classique - Francis Preve
    Thumbnail & video icons:
    Licensed by creativecommons...
    Arrow icon by www.flaticon.c...
    ESP32 icon made by myself

Komentáře • 28

  • @aakashjana6225
    @aakashjana6225 Před 4 lety +8

    After ages, finally there is a crystal clear video explaining how to do this. Now I will be able to get my esp32 out of the box again.

  • @highroyds
    @highroyds Před 3 lety +2

    Thank you for this, it’s given me a more of a understanding of how and what happens, but wow you’re quick with copy and paste then going to the next step. I’m thankful for the pause and play on the vid lol.

  • @yousefalhelabi8601
    @yousefalhelabi8601 Před rokem +1

    What is the random function used for ?

  • @junghanshin7193
    @junghanshin7193 Před 3 lety +1

    Simple and clear. Big help. Thank you.

  • @Blink-ut7uh
    @Blink-ut7uh Před 2 lety

    What is the use of the long rnd variable? Why is it added at the end of the web address

  • @franklarsen6753
    @franklarsen6753 Před rokem

    Great video. Can you also show how it works if I have more than one dataset in JSON file?

  • @jagathesvarma1872
    @jagathesvarma1872 Před 4 lety

    Thank You so much sir. Is there any way to send the data to firebase ? For DH11 + ESP32 + Firebase
    Im trying to figure it out for days but no luck.

  • @WistrelChianti
    @WistrelChianti Před 3 lety

    Interesting library there... I'm wondering how it deals with arrays. Will take a look.

  • @andrewmcallister3529
    @andrewmcallister3529 Před 3 lety +2

    Good video, but what about JSON that's more than 1 dimensional?

    • @tf1044
      @tf1044 Před 3 lety

      if you find out can you tell me here?

    • @andrewmcallister3529
      @andrewmcallister3529 Před 3 lety +3

      @@tf1044 Figured it out, you just add more square brackets after like:
      ["daily"]["weather"]["rainfall"]

  • @EpsRae
    @EpsRae Před 4 lety

    Hi great video! can you explain how to add headers to the GET request?

  • @niltonschumacherfilho3368

    Hey, I'm working on a project that needs to get data from my page on my website. But I came across a problem. When I do the GET command on my page I get this:
    Statuscode: 200



    Array
    (
    [0] => stdClass Object
    (
    [AutoIncrement] => 1
    [Nome Aparelho] => LED
    [Status] => 0
    )
    )

    This is when I output the page info:
    0.00
    0
    Could you help me please?

  • @hansad.k6273
    @hansad.k6273 Před 3 lety

    Bless you bro

  • @gilangrakaramadhan7199
    @gilangrakaramadhan7199 Před 8 měsíci

    Thanks ❤

  • @Staxel_aran
    @Staxel_aran Před 5 lety

    Aaaaawsoooom dude you help me so much

  • @saagembhobbyiest5259
    @saagembhobbyiest5259 Před 4 lety

    i am trying to use this example with my url but getting the response as 200 only. I am not getting json data after that.

    • @babygreen17
      @babygreen17 Před 2 lety

      same

    • @slutbit1749
      @slutbit1749 Před 2 lety +2

      json-results are only defined for rnd=0-5, when rnd is 6-10 it returns [ ].

  • @engineerlawalhamzatademola4267

    The link to the code is not working 😔

  • @pavan4032
    @pavan4032 Před 4 lety

    Hi sir, great video
    Can you please make a video on
    PUT , POST , Requests to hosted phpmyadmin
    Json API end point
    Thank you

  • @Blink-ut7uh
    @Blink-ut7uh Před 2 lety

    What if status code is 404? That's greater than 0 but is a resulting error

  • @vantasy5335
    @vantasy5335 Před 5 lety

    What is JSON?

    • @abobija
      @abobija Před 5 lety +1

      JSON is just standardized format for textual data representation. Something like XML. You can google it - there is a plenty of information about JSON and other data formats on internet.

  • @mustafakurdi7554
    @mustafakurdi7554 Před 4 lety

    Please need the Arduino Json Library 😥
    thanks❤