Search found 12 matches

by tomfrance
Thu Apr 08, 2021 7:17 am
Forum: ESP-IDF
Topic: Websockets: Async send within an interrupt
Replies: 3
Views: 4626

Re: Websockets: Async send within an interrupt

Hi guys!

Any ideas on this matter?

Best,
Tom
by tomfrance
Mon Apr 05, 2021 11:08 pm
Forum: ESP-IDF
Topic: Websockets: Async send within an interrupt
Replies: 3
Views: 4626

Re: Websockets: Async send within an interrupt

I just found out that a lot of useful stuff (e.g. sock_db and its members ws_handshake_detect) can be retrieved from the struct

struct httpd_data

defined in esp_httpd_priv.h However it seems like this data is not meant to be accessed.

Any other way?
by tomfrance
Mon Apr 05, 2021 4:39 pm
Forum: ESP-IDF
Topic: Websockets: Async send within an interrupt
Replies: 3
Views: 4626

Websockets: Async send within an interrupt

Hello team! I am working on a project where the client should be informed about a data update via a push from the server. The server is an ESP32 running esp_http_server and the data push is triggered by e.g., an SPI triggered event running in a seperate task. What's the best way to accomplish this? ...
by tomfrance
Mon Apr 05, 2021 4:25 pm
Forum: ESP-IDF
Topic: Odd issue with passing pointer to struct
Replies: 4
Views: 3713

Re: Odd issue with passing pointer to struct

Thank you very much! Highly appreciated!
by tomfrance
Mon Apr 05, 2021 9:55 am
Forum: ESP-IDF
Topic: Odd issue with passing pointer to struct
Replies: 4
Views: 3713

Re: Odd issue with passing pointer to struct

Hi chegewara!

Thanks a lot! This solved my problem indeed? Would you mind to elaborate what the reason is? Obviously, we are changing the scope of the variables, but why does this matter in this context?

Best, Tom
by tomfrance
Sun Apr 04, 2021 8:34 pm
Forum: ESP-IDF
Topic: Odd issue with passing pointer to struct
Replies: 4
Views: 3713

Odd issue with passing pointer to struct

Hello team, one part of the program looks like the following simplified excerpt: typedef struct A { int valA; char strA[10]; } A; typedef struct B { int valB; char strB[10]; } B; typedef struct col { A* structA; B* structB; } col; void app_main(void) { A structA; B structB; col mycol = { .structA = ...
by tomfrance
Thu Apr 01, 2021 7:54 am
Forum: ESP-IDF
Topic: Best practices for exchanging variables between tasks
Replies: 1
Views: 3707

Best practices for exchanging variables between tasks

Hello team! I have a question concerning some best practices regarding data sharing between different tasks on the ESP32. My current (abstract) setup is described in the following and it works as expected, but I would highly appreciate your input regarding best practices, e.g., to avoid race conditi...
by tomfrance
Thu Mar 25, 2021 9:32 pm
Forum: ESP-IDF
Topic: Connection to AP in AP mode with WPA2 not working
Replies: 2
Views: 3213

Re: Connection to AP in AP mode with WPA2 not working

Does anybody have an idea what the issue might be? Do you need further information?
by tomfrance
Wed Mar 24, 2021 11:44 pm
Forum: ESP-IDF
Topic: Connection to AP in AP mode with WPA2 not working
Replies: 2
Views: 3213

Connection to AP in AP mode with WPA2 not working

Hi guys! I have a small issue that I could not figure out myself: Whenever I use mode WIFI_MODE_AP and require the client to use WIFI_AUTH_WPA2_PSK, the client just would not connect, as the authentification seems to fail. Do you have any idea what the reason is? Changing it to WIFI_AUTH_OPEN makes ...
by tomfrance
Fri Mar 19, 2021 4:40 pm
Forum: ESP-IDF
Topic: Olimex ESP32 Gateway: Ethernet issues
Replies: 4
Views: 4466

Re: Olimex ESP32 Gateway: Ethernet issues

Thank you!

That was by mistake - I actually used the referenced example from the git repository before, but it wouldnt work out of the box. Reason was that I also needed to change the config options:

CONFIG_EXAMPLE_ETH_PHY_RST_GPIO=-1 (disable PHY HW reset)
CONFIG_EXAMPLE_ETH_PHY_ADDR=0