Search found 343 matches

by mzimmers
Fri Oct 11, 2019 4:39 pm
Forum: ESP32 IDF
Topic: HTTP Server API: any way to retrieve client host?
Replies: 0
Views: 84

HTTP Server API: any way to retrieve client host?

Hi all -

I'm using the HTTP Server API. I'd like to know the host name (IP address) of the client sending requests to me. I can't see any way to do this through the API; does anyone have an idea on how to do this?

I'm using V3.3, though I don't think that matters much in this respect.

Thanks...
by mzimmers
Wed Oct 02, 2019 5:14 pm
Forum: ESP32 IDF
Topic: TCP socket error
Replies: 0
Views: 67

TCP socket error

Hi - I'm trying to create a TCP server socket using LwIP calls. When I create/bind/listen on this socket, I will soon get an assertion failure: don't call tcp_recved for listen-pcbs From within LwIP. Here's the code (from lwip/lwip/src/core/tcp.c): void tcp_recved(struct tcp_pcb *pcb, u16_t len) { i...
by mzimmers
Mon Sep 16, 2019 4:08 pm
Forum: ESP32 IDF
Topic: issue with HTTP client
Replies: 4
Views: 382

Re: issue with HTTP client

Hi boarchuz - thanks for the help with this. It turned out to be (as usual) cockpit error: I was allowing one of my yuarel buffers to be overwritten before the call to esp_http_client_perform(), so it had a malformed host field. For anyone else who encounters similar problems, the answer to my quest...
by mzimmers
Sat Sep 14, 2019 1:12 am
Forum: ESP32 IDF
Topic: issue with HTTP client
Replies: 4
Views: 382

Re: issue with HTTP client

I agree, but I don't know why. I'm not even sure from the docs how I'm supposed to use this facility. Do I use it in conjunction with LwIP, or instead of? If the former, do I create a socket, and if so, do I connect to it (I'm guessing not this)? I wish the error code was a little more informative; ...
by mzimmers
Fri Sep 13, 2019 10:26 pm
Forum: ESP32 IDF
Topic: issue with HTTP client
Replies: 4
Views: 382

issue with HTTP client

Hi all - I've been asked to extend the functionality of our ESP32-based product. We now need to communicate with an Informacast server. Here's a bit of code: client = esp_http_client_init(&config); err = esp_http_client_perform(client); ESP_LOGI(TAG, "doInformacastStuff(): esp_http_client_perform() ...
by mzimmers
Fri Aug 30, 2019 8:13 pm
Forum: ESP32 IDF
Topic: any chance of adding SLP to the IDF?
Replies: 1
Views: 232

any chance of adding SLP to the IDF?

Hi all -

I'm curious whether anyone has looked into adding SLP to the IDF. I could use it on my current project.
by mzimmers
Thu Aug 22, 2019 8:09 pm
Forum: General Discussion
Topic: Service Location Protocol?
Replies: 0
Views: 138

Service Location Protocol?

Hi all - It appears that my app is going to need to use Service Location Protocol (SLP). I took a try at building OpenSLP in msys32 without any modifications, but it's too dependent on several Linux header files. I could get in elbows-deep in trying to port it, but before I do, I thought I ask wheth...
by mzimmers
Thu Aug 22, 2019 1:41 pm
Forum: ESP32 IDF
Topic: (solved) getting "assert failed" on socket() call
Replies: 15
Views: 747

Re: getting "assert failed" on socket() call

Oh, I should have realized that. Thanks, Angus. That problem has gone away, and the HTTP server seems to be running fine now.
by mzimmers
Wed Aug 21, 2019 9:57 pm
Forum: ESP32 IDF
Topic: (solved) My app now hangs on boot
Replies: 12
Views: 700

Re: (solved) My app now hangs on boot

Thanks, WiFive. From https://docs.espressif.com/projects/esp ... 32-rev-min:
ESP-IDF performs different strategy on different esp32 revision.
So, what does that mean exactly?
by mzimmers
Wed Aug 21, 2019 8:39 pm
Forum: ESP32 IDF
Topic: (solved) My app now hangs on boot
Replies: 12
Views: 700

Re: (solved) My app now hangs on boot

Well, I got it working. I deleted my entire esp-idf repository (which was just a clone from github anyway), and rebuilt all my tools. It now boots and runs. I still don't know what went wrong, but it's water under the bridge now. Thanks to all who looked and helped... EDIT: I forgot to mention: on s...

Go to advanced search