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

Поделиться
HTML-код
  • Опубликовано: 11 июл 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

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

    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

  • @achmadarifmunaji3320
    @achmadarifmunaji3320 3 года назад +1

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

  • @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

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

    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.

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

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

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

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

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

    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