Search found 69 matches

by ESP_cermak
Wed Jan 24, 2024 6:20 am
Forum: ESP-IDF
Topic: Which SNTP Server was used to synchronize IDF 5.1 and newer
Replies: 2
Views: 7623

Re: Which SNTP Server was used to synchronize IDF 5.1 and newer

Hi chruge, I'm sorry, this is actually an omission from our side. To workaround this problem, you can include these sntp headers, in this order exactly: #include "esp_sntp.h" #undef SNTP_OPMODE_POLL #include "lwip/apps/sntp.h" Then you can use the original lwip's `sntp_getreachability()` function as...
by ESP_cermak
Wed Nov 16, 2022 7:27 pm
Forum: ESP-IDF
Topic: OpenSSL API wrapper not available for ports? (IDF 5.x)
Replies: 2
Views: 1262

Re: OpenSSL API wrapper not available for ports? (IDF 5.x)

Hi RichPiano

You can use esp_websocket_client in https://github.com/espressif/esp-protoc ... ket_client
It works with v5.0 and v5.1
by ESP_cermak
Fri Aug 19, 2022 4:56 pm
Forum: ESP-IDF
Topic: mDNS crash when functions called in wrong order
Replies: 3
Views: 1721

Re: mDNS crash when functions called in wrong order

Thanks for reporting this problem (sorry for the delay & sorry for the inconvenience). I agree that mDNS API should be improved. Although it's mentioned in the example: https://github.com/espressif/esp-idf/blob/4c550fd79fb39331dd17073bc1aab64a99d2f8df/examples/protocols/mdns/main/mdns_example_main.c...
by ESP_cermak
Wed Nov 24, 2021 5:18 pm
Forum: ESP-IDF
Topic: Using both ethernet and wifi interfaces
Replies: 1
Views: 4706

Re: Using both ethernet and wifi interfaces

Hi dsa_doge It's easier to switch to IDF v4.x, but this should work correctly on v3.3, too. You can check this example: https://github.com/espressif/esp-idf/tree/master/examples/protocols/sockets/tcp_client_multi_net to see how to work with different network interfaces on socket layer. Are both inte...
by ESP_cermak
Thu Oct 14, 2021 6:07 am
Forum: ESP-IDF
Topic: ESP32 PPP disconnection re-connection issue
Replies: 21
Views: 16547

Re: ESP32 PPP disconnection re-connection issue

Okay, I see that your deinit function is almost the same as in my example. As noted in that GitHub issue, there must have been some other network interface, and I believe this is your case, too. What other interfaces you use? > I'm not able to share a minimal project in short time No worries, please...
by ESP_cermak
Wed Oct 13, 2021 6:59 am
Forum: ESP-IDF
Topic: ESP32 PPP disconnection re-connection issue
Replies: 21
Views: 16547

Re: ESP32 PPP disconnection re-connection issue

Hi Roberto, Could you please share you deinit logic? It should be possible to reconnect without restart without any issue. I've posted a quick test code here https://gist.github.com/david-cermak/f710199aebea66c6388142f185069dc7 which works for me and just disconnects and reconnects periodically. The...
by ESP_cermak
Fri Sep 24, 2021 4:03 pm
Forum: ESP-IDF
Topic: Want to change softAP IP block
Replies: 1
Views: 2019

Re: Want to change softAP IP block

Hi brewmstr Instead of creating the default wifi interface, you can create a custom one using `esp_netif_create_wifi()` const esp_netif_ip_info_t my_subnet_ip = { .ip = { .addr = ESP_IP4TOADDR( 192, 168, xxx, 1) }, .gw = { .addr = ESP_IP4TOADDR( 192, 168, xxx, 1) }, .netmask = { .addr = ESP_IP4TOADD...
by ESP_cermak
Fri Sep 24, 2021 9:11 am
Forum: ESP-IDF
Topic: Ethernet + IPv6 got addres but ping not work.
Replies: 5
Views: 5309

Re: Ethernet + IPv6 got addres but ping not work.

Thank you for testing this, just wanted to make sure it was the neighbour discovery problem. Yes, you can update the netif flags in the app code: struct netif *lwip_netif = esp_netif_get_netif_impl(eth_netif); netif_set_flags(lwip_netif, NETIF_FLAG_MLD6); Before creating the link local address in: e...
by ESP_cermak
Thu Sep 23, 2021 9:23 am
Forum: ESP-IDF
Topic: Ethernet + IPv6 got addres but ping not work.
Replies: 5
Views: 5309

Re: Ethernet + IPv6 got addres but ping not work.

HI VBKesha,

Could you please try to update the `components/lwip/port/esp32/netif/ethernetif.c`, so that at the end of the `ethernet_low_level_init()` you'd enable MLD6 flag?

Code: Select all

    netif->flags |= NETIF_FLAG_MLD6;
Could you please check at once and let us know if it helped?

Thanks,
David
by ESP_cermak
Wed Sep 22, 2021 7:43 am
Forum: ESP-IDF
Topic: lwip hooks
Replies: 1
Views: 2150

Re: lwip hooks

Hi Steffen

The ${lwip} in your Makefiles is a CMake variable which refers to lwip as a static library, IDF's component.
This is how you can initialise it:

Code: Select all

idf_component_get_property(lwip lwip COMPONENT_LiB)