Search found 384 matches

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

Re: how to add subdirectories to build?

I'm not at all sure what I'm doing here, so I'm trying different things: I added a CMakeLists.txt file (based on one I found in lwip) set(COMPONENT_SRCS "AccountDlg.cpp" "AddDlg.cpp" ) set(COMPONENT_ADD_INCLUDEDIRS "main/MicroSIP-3.19.21-src" ) It has some other stuff in it as well, but I don't thin...
by mzimmers
Mon Oct 21, 2019 5:58 pm
Forum: General Discussion
Topic: (resolved) how to add subdirectories to build?
Replies: 2
Views: 306

(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: ESP32 IDF
Topic: HTTP Server API: any way to retrieve client host?
Replies: 0
Views: 118

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: (closed) TCP socket error
Replies: 0
Views: 100

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

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: (resolved) issue with HTTP client
Replies: 4
Views: 481

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: (resolved) issue with HTTP client
Replies: 4
Views: 481

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

(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: ESP32 IDF
Topic: (solved) getting "assert failed" on socket() call
Replies: 15
Views: 942

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: 924

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?

Go to advanced search