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

preview_player
Показать описание
ESP32 get json from api endpoint through wifi, today we will learn how to perform a get request with an esp32 and receive JSON.

All my code will be available on my Patreon page:

Links:

Sparkfun ESP32 thing

Normal ESP32 (cheaper)

Credits:

Music:
Classique - Francis Preve

Thumbnail & video icons:
ESP32 icon made by myself
Рекомендации по теме
Комментарии
Автор

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.

aakashjana
Автор

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.

highroyds
Автор

Simple and clear. Big help. Thank you.

junghanshin
Автор

What is the random function used for ?

yousefalhelabi
Автор

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

Blink-utuh
Автор

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.

jagathesvarma
Автор

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
<!DOCTYPE html>
<html lang="pt-br">
<head>
</head>
<body>
Array
(
[0] => stdClass Object
(
[AutoIncrement] => 1
[Nome Aparelho] => LED
[Status] => 0
)

)
</body>
</html>


This is when I output the page info:
0.00

0
Could you help me please?

niltonschumacherfilho
Автор

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

andrewmcallister
Автор

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

franklarsen
Автор

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.

saagembhobbyiest
Автор

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

EpsRae
Автор

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

WistrelChianti
Автор

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

Blink-utuh
Автор

Hi sir, great video
Can you please make a video on
PUT, POST, Requests to hosted phpmyadmin

Json API end point
Thank you

pavan
Автор

Please need the Arduino Json Library 😥
thanks❤

mustafakurdi