ESP32 POST JSON to api endpoint - ESP32 POST request to API endpoint

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 พ.ค. 2024
  • ESP32 post json to api endpoint through wifi, today we will learn how to perform a post request with an esp32 and receive JSON.
    ESP32 GET JSON: • ESP32 GET JSON from AP...
    API: jsonplaceholder.typicode.com/...
    All my code will be available on my Patreon page:
    / 33775118
    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.org/licenses/b...
    Arrow icon by www.flaticon.com/authors/lyolya
    ESP32 icon made by myself

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

  • @vandark1233
    @vandark1233 3 ปีที่แล้ว +1

    it works smooth, thanks

  • @mohieddinekhaled1619
    @mohieddinekhaled1619 3 ปีที่แล้ว +1

    Dear Mr. Asali you are the most underrated chanel on youtube xp

  • @piledriverVL
    @piledriverVL 4 ปีที่แล้ว +1

    Can't wait for the next one

  • @achmadarifmunaji3320
    @achmadarifmunaji3320 3 ปีที่แล้ว +1

    can we use the same way to send files from esp32 (SPIFFS file) to the API endpoint?

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

    hi there, I have one requirement where I need esp32 code to handle incoming JSON data. Another system can send data at any time so that esp32 should be able to handle listen that data. Can you please help me to understand this scenario? I have seen your GET and POST video, but it seems It doesn't suit for my requirement.

  • @robsinHL
    @robsinHL 3 ปีที่แล้ว

    Well that was easy. The documentation the team created is great, but a bit dense when you want to start with something this simple. I laughed at the length of this video, thinking how much info can be in it. But it turns out I was set at 2:08. Reminds me how great it is to be beyond the memory limitations of the old Arduino where thinking of implementing JSON was ridiculous. Indeed if you go to the Arduino forum, people will still scoff at you. That said, will run my board / API for a couple days straight and see if there are memory leaks :)

  • @bramst8034
    @bramst8034 4 ปีที่แล้ว

    leuke video!

  • @101appsCoZa
    @101appsCoZa 4 ปีที่แล้ว

    nice! thanks

  • @kendouciabdelaliilyas
    @kendouciabdelaliilyas 3 ปีที่แล้ว

    Please how i can send the data to json file on server

  • @TheMegatron02
    @TheMegatron02 3 ปีที่แล้ว

    I dont know why but a cant add the field "title", Im not seeing it on the serial monitor

  • @vantasy5335
    @vantasy5335 4 ปีที่แล้ว

    You’re alive!

    • @asali-channel
      @asali-channel  4 ปีที่แล้ว

      Ofcourse I am! Why wouldn't I be??

    • @nylax4396
      @nylax4396 4 ปีที่แล้ว +1

      hello mike

    • @vantasy5335
      @vantasy5335 4 ปีที่แล้ว

      ​@@nylax4396 Dag mike, Ah nee ik ben Mike

    • @nylax4396
      @nylax4396 4 ปีที่แล้ว

      @@vantasy5335 ik ben nen stukadoooooooooooooor

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

    Anyone knows why I get -5 response code?

  • @devopssimon
    @devopssimon 4 ปีที่แล้ว

    I get the following error when compiling the script. 'JSON_OBJECT_SIZE' was not declared in this scope
    Any ideas what might be wrong?

    • @devopssimon
      @devopssimon 4 ปีที่แล้ว +1

      Sorted it. I had not installed the ArduinoJson library in the library manager. After doing that and then including it in the script, everything worked OK.

    • @asali-channel
      @asali-channel  4 ปีที่แล้ว

      Happy to hear you sorted it out!

  • @nylax4396
    @nylax4396 4 ปีที่แล้ว +6

    The people who dislike this are just bad at understanding ESP32 post json to api endpoint.
    fkin lsrs

    • @nylax4396
      @nylax4396 4 ปีที่แล้ว +1

      nice new font btw!

    • @asali-channel
      @asali-channel  4 ปีที่แล้ว

      Thanks brooo

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

      Or they just don’t want to send it insecurely via http.

  • @user-gr9wq1wb4c
    @user-gr9wq1wb4c 3 ปีที่แล้ว

    And you expect to pay $ 5 on the platform you uploaded code that is no more than 100 lines?

    • @asali-channel
      @asali-channel  3 ปีที่แล้ว +4

      All the code is visible in the video, the $5 is to support me