Search found 18 matches

by ppisljar
Tue Sep 24, 2019 8:08 pm
Forum: ESP32 IDF
Topic: http server async response and keeping socket open
Replies: 2
Views: 143

Re: http server async response and keeping socket open

i figured you can't really mix httpd_resp_* with httpd_default_send ... if you want to use the later you should only use the later and also send correct HTTP headers first.
by ppisljar
Tue Sep 24, 2019 7:23 pm
Forum: ESP32 IDF
Topic: http server async response and keeping socket open
Replies: 2
Views: 143

Re: http server async response and keeping socket open

i narrowed it down to this code inside response handler not working: const char* str = "event: test\ndata: test\n\n"; int resp = httpd_default_send(req->handle, httpd_req_to_sockfd(req), str, strlen(str), 0); printf("sent with: %i", resp); httpd_default_send does not return error (resp is correct le...
by ppisljar
Tue Sep 24, 2019 5:55 pm
Forum: ESP32 IDF
Topic: http server async response and keeping socket open
Replies: 2
Views: 143

http server async response and keeping socket open

Hello, i would like to implement EventSource in http server, which requires me to keep the connections open and send data to them at later time. I tried several aproaches so far: - getting `fd` and `hd` from `req`, storing them and using them later from another function later with `http_default_send...
by ppisljar
Sun Sep 15, 2019 6:23 pm
Forum: ESP32 IDF
Topic: multiple definitions of 'operator|='
Replies: 3
Views: 240

Re: multiple definitions of 'operator|='

the code can be seen here https://github.com/ppisljar/esp32ctrl
by ppisljar
Sun Sep 15, 2019 6:22 pm
Forum: ESP32 IDF
Topic: multiple definitions of 'operator|='
Replies: 3
Views: 240

Re: multiple definitions of 'operator|='

the code was working with esp-idf 4.0 (with gcc 4.2.0) .... latest version is 4.1 with gcc 8.2.0
by ppisljar
Sun Sep 15, 2019 1:50 pm
Forum: ESP32 IDF
Topic: multiple definitions of 'operator|='
Replies: 3
Views: 240

multiple definitions of 'operator|='

Recently i installed esp idf on new machine, thus upgraded to latest version with cmake and gcc 8.2.0 however my project now no longer builds. it compiled ok, but when linking i get the following errors: /home/user/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/...
by ppisljar
Thu Sep 21, 2017 6:41 pm
Forum: General Discussion
Topic: How to make ESP32 output 20MHZ's clock
Replies: 4
Views: 4367

Re: How to make ESP32 output 20MHZ's clock

seems pwm can only be used to generate 333k clock ... what about higher frequencies ?
by ppisljar
Fri Sep 08, 2017 5:14 am
Forum: ESP32 IDF
Topic: connect and send audio data to a2dp sink
Replies: 3
Views: 2570

Re: connect and send audio data to a2dp sink

still no progress on this, its the last thing holding my project back at the moment,

anyone else managed to make A2DP-SRC: (Advanced Audio Distribution Source) work on ESP32 ?
by ppisljar
Wed May 24, 2017 3:54 pm
Forum: ESP32 Arduino
Topic: bluetooth code size enormous
Replies: 5
Views: 3749

Re: bluetooth code size enormous

i tried to compile esp-idf example to verify the size .... and its 715kb (compared to 950kb with arduino) ... still quite huge for something that doesn't do much (if you want to use OTA with it ... you have like 300kb left for your other code (and other libs ... like wifi and stuff) ... but running ...
by ppisljar
Wed May 24, 2017 3:43 pm
Forum: ESP32 Arduino
Topic: bluetooth code size enormous
Replies: 5
Views: 3749

Re: bluetooth code size enormous

copy .data from 4000d890 to 3ffae6e0, len 00001830

this looks like its accessing memory that doesn't exist .... :cry:

Go to advanced search