Search found 34 matches

by teckhaokoh
Tue Aug 31, 2021 4:07 am
Forum: ESP-IDF
Topic: HTTPS Server keep creating new connections
Replies: 2
Views: 2302

Re: HTTPS Server keep creating new connections

Any way of making the HTTPS server reuse the same connection for the requests?
by teckhaokoh
Mon Aug 30, 2021 3:08 am
Forum: ESP-IDF
Topic: HTTPS Server keep creating new connections
Replies: 2
Views: 2302

HTTPS Server keep creating new connections

I'm having a HTTP server using esp-idf's esp_http_server library and it's working well. When I enable the same code with the HTTPS server using esp_https_server, I found that it keep creating new connections for the same web page with a lot javascript and css files. This make my web page load very v...
by teckhaokoh
Mon Mar 08, 2021 9:20 am
Forum: ESP-IDF
Topic: Libwebsockets with FatFS
Replies: 6
Views: 5230

Re: Libwebsockets with FatFS

Understood.
Thank you very much for your info.
I'll review my code and focus on the issues as you mentioned.
by teckhaokoh
Mon Mar 08, 2021 1:32 am
Forum: ESP-IDF
Topic: Libwebsockets with FatFS
Replies: 6
Views: 5230

Re: Libwebsockets with FatFS

Smells like memory corruption (assert in the heap allocator) that then tries to panic but can't properly, likely because of the aforementioned memory corruption. Thanks for verify that. That memory corruption means some memory leak and not properly free right? It always failed when accessing the fi...
by teckhaokoh
Thu Mar 04, 2021 2:34 pm
Forum: ESP-IDF
Topic: Libwebsockets with FatFS
Replies: 6
Views: 5230

Re: Libwebsockets with FatFS

Hi, thanks for your response, here's the backtrace: 0x4009547e: panic_abort at /home/user/esp/esp-4.2/esp-idf/components/esp_system/panic.c:330 0x40095185: esp_system_abort at /home/user/esp/esp-4.2/esp-idf/components/esp_system/system_api.c:97 0x400980f6: abort at /home/user/esp/esp-4.2/esp-idf/com...
by teckhaokoh
Thu Feb 25, 2021 6:15 pm
Forum: ESP-IDF
Topic: Libwebsockets with FatFS
Replies: 6
Views: 5230

Libwebsockets with FatFS

I've successfully run HTTPS server using libwebsockets with esp-idf release v4.2.

Everything worked well, until I tried accesing FatFs in the esp32.... Either read or write even fseek will cause it calling abort and reboot...

Any idea or possible causes of the problem?
by teckhaokoh
Fri Feb 19, 2021 8:37 am
Forum: ESP-IDF
Topic: libwebsockets - undefined reference to 'errno'
Replies: 0
Views: 1756

libwebsockets - undefined reference to 'errno'

Hi, anyone have successfully build esp32 with libwebsockets? I'm using esp-idf release/v4.2 , with the latest libwebsockets added as submodule in the components folder. I'm able to execute the compilation till the last step, building the xxxx.elf, but it returned error as below: /home/user/.espressi...
by teckhaokoh
Fri May 22, 2020 2:45 am
Forum: ESP-IDF
Topic: UDP socket couldn't receive broadcast message
Replies: 0
Views: 2308

UDP socket couldn't receive broadcast message

I'm working on the bacnet IP, and I found that the UDP socket doesn't receive the broadcast message from the client. I'm using ESP-IDF 4.2, I've set IP_SOF_BROADCAST and IP_SOF_BROADCAST_RECV to 1 in opt.h as suggested. I've set socket options of SO_BROADCAST and bind the socket to INADDR_ANY too. A...
by teckhaokoh
Fri May 22, 2020 2:39 am
Forum: ESP-IDF
Topic: APSTA Mode - STA connected but not accessible after random period of time
Replies: 5
Views: 7271

Re: APSTA Mode - STA connected but not accessible after random period of time

I spent quite some time to troubleshoot, I think it's the ARP table issue. I found that after I switching the WIFI connections of my PC (my esp32 and PC connected to router by default) to esp32's AP, then back to router, the ARP table in my PC do not have the record of my esp. If I add in the ARP en...
by teckhaokoh
Thu May 14, 2020 3:02 am
Forum: ESP-IDF
Topic: APSTA Mode - STA connected but not accessible after random period of time
Replies: 5
Views: 7271

Re: APSTA Mode - STA connected but not accessible after random period of time

Anyone know the meaning of each items and numbers in the wifi debug message below?


I (467626043) wifi: n:1 0, o:1 1, ap:1 1, sta:1 0, prof:1