Search found 643 matches

by mzimmers
Mon Oct 21, 2019 5:58 pm
Forum: General Discussion
Topic: (resolved) how to add subdirectories to build?
Replies: 2
Views: 3530

(resolved) how to add subdirectories to build?

Hi all - I need to port a SIP stack into a project. It's all in one directory I've located under /main. I edited my component.mk file as such: COMPONENT_ADD_INCLUDEDIRS := \ MicroSIP-3.19.21-src \ MicroSIP-3.19.21-src/lib \ MicroSIP-3.19.21-src/lib/jsoncpp \ MicroSIP-3.19.21-src/lib/jsoncpp/json \ C...
by mzimmers
Fri Oct 11, 2019 4:39 pm
Forum: ESP-IDF
Topic: HTTP Server API: any way to retrieve client host?
Replies: 0
Views: 1767

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: ESP-IDF
Topic: (closed) TCP socket error
Replies: 0
Views: 1848

(closed) 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: ESP-IDF
Topic: (resolved) issue with HTTP client
Replies: 4
Views: 7955

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: ESP-IDF
Topic: (resolved) issue with HTTP client
Replies: 4
Views: 7955

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: ESP-IDF
Topic: (resolved) issue with HTTP client
Replies: 4
Views: 7955

(resolved) 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: ESP-IDF
Topic: (resolved) any chance of adding SLP to the IDF?
Replies: 2
Views: 2674

(resolved) 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 1:41 pm
Forum: ESP-IDF
Topic: (solved) getting "assert failed" on socket() call
Replies: 15
Views: 17543

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: ESP-IDF
Topic: (solved) My app now hangs on boot
Replies: 12
Views: 12044

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: ESP-IDF
Topic: (solved) My app now hangs on boot
Replies: 12
Views: 12044

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...