Search found 6 matches
- Mon Dec 06, 2021 4:41 pm
- Forum: ESP-IDF
- Topic: Programming ESP32-C3 with ESP-Prog
- Replies: 1
- Views: 3448
Programming ESP32-C3 with ESP-Prog
Hello, Background : I had just recently gotten the ESP-Prog to program a PCB I made with the ESP32-C3-MINI-1-H4, however I wasn't lucky with it. I decided to see if I can get the ESP32-C3-DevKitM-1 working with the ESP-Prog before I order a new PCB, but I am having trouble doing that too. I have the...
- Mon Nov 29, 2021 8:06 pm
- Forum: ESP-IDF
- Topic: HTTP Server URI Question
- Replies: 8
- Views: 7149
Re: HTTP Server URI Question
Sorry for the late response, I had to prioritize a different project. The solution works great! I appreciate the help.
- Tue Nov 02, 2021 2:07 pm
- Forum: ESP-IDF
- Topic: HTTP Server URI Question
- Replies: 8
- Views: 7149
Re: HTTP Server URI Question
Looks like if you input the string "grab/*" for the .uri when making the http_uri_t variable, the * gets registered as a string, so only get/* can be called, not get/whatever . Was wondering about your response because I actually have it working in a bunch of my apps... Turns out it's a configurati...
- Fri Oct 29, 2021 2:28 pm
- Forum: ESP-IDF
- Topic: HTTP Server URI Question
- Replies: 8
- Views: 7149
Re: HTTP Server URI Question
It's essentially a string, so standard C functions will work: sscanf, atoi, strstr etc. You'd use a combination of those. Looks like if you input the string "grab/*" for the .uri when making the http_uri_t variable, the * gets registered as a string, so only get/* can be called, not get/whatever .
- Thu Oct 28, 2021 7:55 pm
- Forum: ESP-IDF
- Topic: HTTP Server URI Question
- Replies: 8
- Views: 7149
Re: HTTP Server URI Question
How would you obtain whatever argument is input for *?ESP_Sprite wrote: ↑Thu Oct 28, 2021 12:53 amDepends on the http server you're using. If using esp-httpd (the one included in esp-idf), you could simply register your own get (or post) handler for the "/grab/*" url and parse the url yourself.
- Wed Oct 27, 2021 5:30 pm
- Forum: ESP-IDF
- Topic: HTTP Server URI Question
- Replies: 8
- Views: 7149
HTTP Server URI Question
Question: Can the ESP-IDF acquire integers from a HTTP URI? Background: I am currently working on a program in C that replicates some endpoints used by a Raspberry Pi (Python). An example of a Pi URI is something like "/grab/4", where it is registered as "/grab/<int:amount>" in the code and amount c...