Search found 50 matches

by ESP_cermak
Mon Sep 21, 2020 3:30 pm
Forum: General Discussion
Topic: pppos_client bug/issue !! [IDFGH-3620]
Replies: 4
Views: 589

Re: pppos_client bug/issue !! [IDFGH-3620]

okay, understand now, thanks for explaining. There's indeed a race condition, as we first switch over to the command mode and then initialise the PPP network interface. This is true for releases v4.0 and earlier. There was a major refactoring of the PPP client and the esp-modem in v4.1 to use the es...
by ESP_cermak
Tue Sep 15, 2020 2:50 pm
Forum: ESP-IDF
Topic: Correct Way To Close a Websocket Socket
Replies: 4
Views: 265

Re: Correct Way To Close a Websocket Socket

Hi baldhead, I think you can use the below API of esp-http-server httpd_sess_trigger_close() to close the socket fd. Please note, that a new wss example was added to esp-idf including a very simple keep-alive mechanism. This hasn't been yet published to GitHub, but will soon appear on the master bra...
by ESP_cermak
Tue Sep 15, 2020 2:43 pm
Forum: ESP-IDF
Topic: Bridging ethernet and wifi
Replies: 3
Views: 176

Re: Bridging ethernet and wifi

Hi pascal21 Yes, that's correct. The IDF example "eth2ap" doesn't use network interfaces at all. It just connects the wifi driver to the ethernet driver, so the packets are directly passed from one to another without going through the TCP/IP stack (which has its benefits). Yes, it is possible to use...
by ESP_cermak
Mon Aug 24, 2020 3:04 pm
Forum: ESP-IDF
Topic: 4.3 server websocket - send_frame delayed when using async_send
Replies: 3
Views: 178

Re: 4.3 server websocket - send_frame delayed when using async_send

Hi Justin2020, Yes, this is the expected behaviour. The reason for that is that both `httpd_ws_send_frame()` and `httpd_queue_work()` are executed from the same thread, and in addition to that (since the example runs these functions directly from the httpd handlers) this is also the httpd main threa...
by ESP_cermak
Thu Jul 23, 2020 2:40 pm
Forum: ESP-IDF
Topic: ESP32 Websocket Server
Replies: 23
Views: 4260

Re: ESP32 Websocket Server

Hi Baldhead, For asynchronous send from the ws server, you can use `httpd_queue_work()` as shown in the example with ws_async_send(). This is triggered as a response to some request (for testing purpose only), but could be used any time for any connected client. It only needs the httpd handle, and t...
by ESP_cermak
Thu Jul 02, 2020 11:50 am
Forum: General Discussion
Topic: pppos_client bug/issue !! [IDFGH-3620]
Replies: 4
Views: 589

Re: pppos_client bug/issue !!

Hi tabulous,

This example just demonstrates interfacing modems that happen to be in command mode after startup, so it is okay to sync first using generic AT commands and then create and start the ppp network interface after that.
by ESP_cermak
Wed Apr 15, 2020 7:57 am
Forum: ESP-IDF
Topic: Selecting MQTT interface [IDF-1576]
Replies: 4
Views: 1386

Re: Selecting MQTT interface [IDF-1576]

Hi aderregibus lwIP uses the *default interface* for a socket to connect to, it is chosen based on user's API `netif_set_default()` provided the netif status is *up*. ESP abstraction to the interface routing (and to the TCP/IP stack in general) is a component called esp-netif, documented here: https...
by ESP_cermak
Mon Mar 23, 2020 12:46 pm
Forum: ESP-IDF 中文讨论版
Topic: mqtt ssl双向认证例程报-0x2700错误![IDFGH-2945]
Replies: 3
Views: 1701

Re: mqtt ssl双向认证例程报-0x2700错误![IDFGH-2945]

Hi suifan.

Please check this comment: https://github.com/espressif/esp-idf/is ... -458254140
AFAICT this is still true, the actual https://test.mosquitto.org/ssl/mosquitto.org.crt 's signature algorithm is sha1WithRSAEncryption
by ESP_cermak
Mon Feb 03, 2020 7:24 am
Forum: IDEs for ESP-IDF
Topic: OpenOCD with CLion (debugging)
Replies: 3
Views: 1343

Re: OpenOCD with CLion (debugging)

Hi, Remote debugging works good with CLion on linux and macOS (in theory should also work on windows, but have never tried) * Go to Run->Edit Debug configuration - Add GDB Remote Debug - fill in GDB custom executable as xtensa-esp32-elf-gdb - setup target remote as :3333 - set Symbol file to the act...
by ESP_cermak
Mon Dec 02, 2019 10:58 am
Forum: ESP-IDF
Topic: mDNS ping example not working in ESP-IDF v4.0 Beta 0.2
Replies: 8
Views: 3692

Re: mDNS ping example not working in ESP-IDF v4.0 Beta 0.2

There might be a related bugfix, not included in v4.0-beta2, but already on the release branch (https://github.com/espressif/esp-idf/commit/29690afc5799da7b7044e2304eb5a43652efa30c) Could you please check if that resolves the ping issue? (either using release/v4.0 branch or picking that commit to yo...

Go to advanced search