HTTP Client - FreeRTOS ESP IDF - POST request for ESP32

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ก.ค. 2022
  • HTTP Client - FreeRTOS ESP IDF - POST request for ESP32
    Code:
    github.com/SIMS-IOT-Devices/H...

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

  • @TheMoumou120
    @TheMoumou120 21 วันที่ผ่านมา

    man you are the best doing idf projects thank you!

  • @vedangbale5601
    @vedangbale5601 2 หลายเดือนก่อน

    Thanks a lot for this video !!

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

    Hello did you some tutorials for async http too?

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

      Dear Michael,
      We on this channel are trying to concentrate on ESP IDF.
      I thought that on TH-cam a lot of good tutorials regarding async HTTP.

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

    Im getting crazy with this. For some reason when I do a post request, the server receives a empty content but the content-size is correct. When I do it through postman for example, the content is received normally. Does anyone know what is happening or did has this problem?

    • @simsiotdevices6219
      @simsiotdevices6219  2 หลายเดือนก่อน +1

      Dear @TheScrider,
      Please note that here HTTP protocol (and not HTTPS) is applied. Most of the current servers can not work with HTTP protocol and require HTTPS.

    • @TheScrider
      @TheScrider 2 หลายเดือนก่อน

      @@simsiotdevices6219 I know it, I implemented a simple http server to run in a linux. I had to use ws server and to implement a buffer message to make it work. This is for my master degree project, ty for answer me

  • @KK-ib5nh
    @KK-ib5nh ปีที่แล้ว

    I want connect to with the localhost server to send the data frm esp32 . I am following this code . But I am getting error like this
    E (5538) esp-tls: [sock=54] delayed connect error: Connection reset by peer
    E (5538) TRANSPORT_BASE: Failed to open a new connection: 32772
    E (5538) HTTP_CLIENT: Connection failed, sock < 0
    How to solve this?

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

      Dear K K,
      Please check the type of server that you are trying to connect to. The absolute majority of the servers are secure HTTPS. I have published a playlist for it:
      th-cam.com/play/PLgrKXQgo8LPu1m7XLXNMgHw28kK3UwqUc.html
      The current video is a simplified version regarding only HTTP servers which are extremely rare, but with much simpler code.

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

      Hi, because this test url unavailable now.

  • @user-gi2tv7gq5l
    @user-gi2tv7gq5l 9 หลายเดือนก่อน

    im getting error as my_data.h no such file or directory

    • @simsiotdevices6219
      @simsiotdevices6219  9 หลายเดือนก่อน

      Dear @user-gi2tv7gq5l,
      In the same GitHub directory, you have:
      github.com/SIMS-IOT-Devices/FreeRTOS-ESP-IDF-HTTP-Client/blob/main/my_data.h
      Please add this file with correct credentials to your main folder.

    • @user-gi2tv7gq5l
      @user-gi2tv7gq5l 9 หลายเดือนก่อน

      @@simsiotdevices6219
      Thank You so much

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

    how can i put bearer token into header?

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

      Dear @user-ym7qc3jv5t,
      If I understood correctly, you want to use bearer tokens as part of the OAuth 2.0 framework authorization. I have multiple inquiries on this subject and put a request for the video regarding this on the wish list.

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

    I am using this code but it is in soft ap mode

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

      Dear Sandip,
      I understand from your message that:
      esp_wifi_set_config(ESP_IF_WIFI_STA, &wifi_configuration);
      the line was changed and worked correctly with the following:
      esp_wifi_set_config(ESP_IF_WIFI_AP, &wifi_configuration);
      right?

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

      @@simsiotdevices6219 ok my question is there should be STA or AP.
      I tried with both but i am getting error. I have one doubt my url content https because of it is signed rest api of AWS to get certificate.
      Please guide me

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

      Dear @@Sandipmaurya001 ,
      You are using the HTTP code. For HTTPS I suggest to consider the following playlist:
      FreeRTOS ESP IDF - HTTPS Client & Server (Firebase - Firestore database)
      th-cam.com/play/PLgrKXQgo8LPu1m7XLXNMgHw28kK3UwqUc.html

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

    evt should be pointer

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

      Dear @user-ym7qc3jv5t,
      The evt is defined as esp_http_client_event_handle_t type variable when the definition of esp_http_client_event_handle_t is:
      typedef struct esp_http_client_event *esp_http_client_event_handle_t
      So yes, evt is a pointer to struct esp_http_client_event.