Search found 9 matches

by Pedrojdi
Mon Jun 06, 2022 8:15 pm
Forum: ESP-IDF
Topic: HTTP_DELETE error - Request method for this URI is not handled by server
Replies: 1
Views: 1765

Re: HTTP_DELETE error - Request method for this URI is not handled by server

I managed to get it right mate, I ended up forgetting to put .uri = "/api/testWs/*"
everything working now, thank you very much
by Pedrojdi
Mon Jun 06, 2022 7:31 pm
Forum: ESP-IDF
Topic: HTTP_DELETE error - Request method for this URI is not handled by server
Replies: 1
Views: 1765

HTTP_DELETE error - Request method for this URI is not handled by server

Good afternoon fellow programmers, could you clarify a doubt for me. I'm create a rest and pasted a snippet of the code. if you have this information to help me I would appreciate it. The get, put, post methods are working perfectly when I test in the post man, but the delete method when tested give...
by Pedrojdi
Tue Apr 13, 2021 10:16 pm
Forum: General Discussion
Topic: memory leak using cJson ESP32
Replies: 3
Views: 3869

Re: memory leak using cJson ESP32

good night colleague, how to release jsonWS using the command free(jsonWs);

In which part of the program I would release, because by placing this command the program restarts

thank you so much
by Pedrojdi
Tue Apr 13, 2021 9:22 pm
Forum: General Discussion
Topic: memory leak using cJson ESP32
Replies: 3
Views: 3869

memory leak using cJson ESP32

Please could someone help me to identify why there is a memory leak using cJson I could not find the problem. whenever I do an authentication the live memory decreases. The json is created only at that point, I have already changed the control logic but in any case it always ends up leaking memory e...
by Pedrojdi
Mon Apr 12, 2021 6:39 pm
Forum: ESP-IDF
Topic: Rest Server
Replies: 3
Views: 3067

Re: Rest Server

I posted this example for clarity, but any std :: string variable that I declare an example: std :: string teste = "teste"; every time "system_info_get_handler" is called, the memory decreases and if I take out the variables of type string it always remains stable gives the impression that the test ...
by Pedrojdi
Mon Apr 12, 2021 3:44 pm
Forum: ESP-IDF
Topic: Rest Server
Replies: 3
Views: 3067

Re: Rest Server

how to release the variable of type std :: string so that there is no memory leak or it is not possible
by Pedrojdi
Sun Apr 11, 2021 8:10 pm
Forum: ESP-IDF
Topic: Rest Server
Replies: 3
Views: 3067

Rest Server

Colleagues programmers would like information, I set up through esp32 a rest application according to the example of Espressif. Everything is working but it has a detail that I couldn't solve about a variable. this is part of the espressif example /* Simple handler for getting system handler */ stat...
by Pedrojdi
Thu Mar 11, 2021 11:04 pm
Forum: ESP-IDF
Topic: How to sign and verfiy with mbedtls
Replies: 1
Views: 5283

How to sign and verfiy with mbedtls

How to use the following functions in the right way. I generated the token through the code made available by Kolban at the link https://github.com/nkolban/esp32-snippets/tree/master/cloud/GCP/JWT The signing process worked just fine because testing on the website https://jwt.io where it can be veri...
by Pedrojdi
Mon Mar 08, 2021 2:47 pm
Forum: ESP-IDF
Topic: [Answered]: JWT component for ESP-IDF (JSON Web Tokens)
Replies: 10
Views: 29625

Re: [Answered]: JWT component for ESP-IDF (JSON Web Tokens)

Hi Kolban, I'm Brazilian, sorry for my English All right, I downloaded your jwt token creation example and managed to generate the token without any problem. I would like to know how to test the signature of the token the time the customer resends. In my scenario I have an esp32 as a server and a cl...