Search found 169 matches

by Baldhead
Thu Sep 24, 2020 2:32 am
Forum: ESP-IDF
Topic: How to get "esp_netif_t *esp_netif" ???
Replies: 5
Views: 208

Re: How to get "esp_netif_t *esp_netif" ???

Hi again, I would like to know how i can integrate the above "my_wifi.c" file with my https/wss server ? Project structure(sort of looks like this): project root folder/ main/ - main.c components/ communication/ my_wifi/ - my_wifi.c my_ws_server/ - webSocket_server.c In this code below, wifi and htt...
by Baldhead
Thu Sep 24, 2020 2:15 am
Forum: ESP-IDF
Topic: How to get "esp_netif_t *esp_netif" ???
Replies: 5
Views: 208

Re: How to get "esp_netif_t *esp_netif" ???

Hi, Now are partially working. I dont know why, in first call, the function "esp_netif_get_hostname()" not work, but after i set the name with "esp_netif_set_hostname" the function "esp_netif_get_hostname()" work. const char* old_hostname; ret = esp_netif_get_hostname( netif, &old_hostname ); printf...
by Baldhead
Wed Sep 23, 2020 5:12 pm
Forum: ESP-IDF
Topic: How to get "esp_netif_t *esp_netif" ???
Replies: 5
Views: 208

Re: How to get "esp_netif_t *esp_netif" ???

Thank's @boarchuz,

Someone could tell me if the hostname is write in the flash memory ?

How to pass a pointer to pointer argument to this function "esp_netif_get_hostname( )" ???

Function prototype: "esp_err_t esp_netif_get_hostname(esp_netif_t *esp_netif, const char **hostname)"
by Baldhead
Wed Sep 23, 2020 5:01 am
Forum: ESP-IDF
Topic: How to get "esp_netif_t *esp_netif" ???
Replies: 5
Views: 208

Re: How to get "esp_netif_t *esp_netif" ???

any suggestion will be well appreciated.

Thank's.
by Baldhead
Tue Sep 22, 2020 4:18 am
Forum: ESP-IDF
Topic: How to get "esp_netif_t *esp_netif" ???
Replies: 5
Views: 208

How to get "esp_netif_t *esp_netif" ???

Hi, I am trying to make this: "https://www.esp32.com/viewtopic.php?p=65487#p65487" I want to generate a server hostname with the mac address. When the function "void set_unique_hostname()" must be called ? void init_my_server() { ESP_ERROR_CHECK(nvs_flash_init()); ESP_ERROR_CHECK(esp_netif_init()); ...
by Baldhead
Mon Sep 21, 2020 11:29 pm
Forum: General Discussion
Topic: What would you like to see in The Next Chip?
Replies: 382
Views: 172836

Re: What would you like to see in The Next Chip?

I agree with @pataga
by Baldhead
Mon Sep 21, 2020 11:25 pm
Forum: General Discussion
Topic: SoftAp with Domain Name
Replies: 5
Views: 4430

Re: SoftAp with Domain Name

Hi, "Is your goal to have your ESP32 addressible over the "Internet" or have it resolved locally (for example just in your house or office) ?" A: In my case i want in boths. I am really lost at the moment. What i want to do ? A: I want to have several websockets secure server running in a local area...
by Baldhead
Tue Sep 15, 2020 4:48 pm
Forum: ESP-IDF
Topic: Correct Way To Close a Websocket Socket
Replies: 4
Views: 266

Re: Correct Way To Close a Websocket Socket

Thank's.

But wss are client or server ?

I did a simple keep alive in my websocket server.

Apparently it's working now.

I can post the code to be included in esp-idf if you have interest.
by Baldhead
Tue Sep 15, 2020 6:52 am
Forum: ESP-IDF
Topic: Correct Way To Close a Websocket Socket
Replies: 4
Views: 266

Re: Correct Way To Close a Websocket Socket

Hi,

When i close a socket with "closesocket( )", the following messages appear:

E (233681) httpd: httpd_server: error in select (9)
W (233686) httpd_sess: httpd_sess_delete_invalid: Closing invalid socket 58


Any problem with this ?

Or i can keep using "closesocket( )" ?


Thank's.
by Baldhead
Tue Sep 15, 2020 6:33 am
Forum: ESP-IDF
Topic: vTaskSuspendAll() CRASH
Replies: 3
Views: 161

Re: vTaskSuspendAll() CRASH

Hi,

Rising the priority of "static void ws_keep_alive_task( void* pvParameters )" task to 6 while the priority of "http_server" task are 5 made the mutex work now.

Go to advanced search