Search found 7 matches

by anmnmnly
Tue Apr 30, 2024 7:14 am
Forum: ESP IoT Solution 中文讨论版
Topic: Eclipse环境如何搭建IoT Solution
Replies: 0
Views: 3103

Eclipse环境如何搭建IoT Solution

各位好,

目前使用乐鑫 IDE(2.11.1版本),它实际是基于 Eclipse 的集成开发环境 (IDE),很多应用都是在次平台进行开发的。现在需要用到ESP IoT Solution平台的功能,但官方给出的平台搭建步骤又搞成命令行的,不知道有没有方法直接集成到Eclipse环境中,知道的伙伴还请不吝指教,谢谢了。
by anmnmnly
Tue Mar 12, 2024 10:29 am
Forum: ESP-IDF
Topic: How to choose a signal channel with the least APs
Replies: 0
Views: 413

How to choose a signal channel with the least APs

When using ESP32 as an AP, it is necessary to set up a channel.So, is there an interface that allows ESP32 to automatically select a signal channel with the least APs? Alternatively, scan the number of APs in the current channel.
by anmnmnly
Tue Mar 12, 2024 10:27 am
Forum: ESP-IDF 中文讨论版
Topic: 如何选择一个AP少的信道?
Replies: 1
Views: 1865

如何选择一个AP少的信道?

在使用ESP32作为AP时需要设置信道,有没有接口可以让ESP32自动选择一个AP少的信道?或者扫描出当前信道的AP数量也行。
by anmnmnly
Sun Feb 18, 2024 10:20 am
Forum: ESP-IDF 中文讨论版
Topic: 当某个station掉线时,UDP sendto 返回ENOMEM
Replies: 1
Views: 936

Re: 当某个station掉线时,UDP sendto 返回ENOMEM

代码如下:

int ret_len = sendto(socket_fd, tx_buffer, sizeof(tx_buffer), 0, (struct sockaddr*)&server_addr, server_addr_len);
if (ret_len < 0)
{
ESP_LOGI(TAG, "sent to %s failed, errno=%d:%s", inet_ntoa(server_addr.sin_addr), errno, strerror(errno));
}
vTaskDelay(pdMS_TO_TICKS(5));
by anmnmnly
Sun Feb 18, 2024 10:20 am
Forum: General Discussion
Topic: UDP sendto return ENOMEM when a station disconnected.
Replies: 1
Views: 598

Re: UDP sendto return ENOMEM when a station disconnected.

please see the codes below:

int ret_len = sendto(socket_fd, tx_buffer, sizeof(tx_buffer), 0, (struct sockaddr*)&server_addr, server_addr_len);
if (ret_len < 0)
{
ESP_LOGI(TAG, "sent to %s failed, errno=%d:%s", inet_ntoa(server_addr.sin_addr), errno, strerror(errno));
}
vTaskDelay(pdMS_TO_TICKS(5));
by anmnmnly
Mon Feb 05, 2024 7:45 am
Forum: General Discussion
Topic: UDP sendto return ENOMEM when a station disconnected.
Replies: 1
Views: 598

UDP sendto return ENOMEM when a station disconnected.

There are three devices A, B and C, where A is the AP, B and C are the stations. Device A sends data to the B and C using UDP, during the transmiting, if B or C disconnected or powered off, the sendto() will return ENOMEM for a long time (approximate 3 seconds). I traced this issue and find esp_wifi...
by anmnmnly
Mon Feb 05, 2024 7:37 am
Forum: ESP-IDF 中文讨论版
Topic: 当某个station掉线时,UDP sendto 返回ENOMEM
Replies: 1
Views: 936

当某个station掉线时,UDP sendto 返回ENOMEM

有三个设备A、B和C,其中A时AP,B和C是Station。设备A通过UDP发送数据给B和C,在传输过程中如果断开设备B,设备A调用sendto发送数据给设备C也将返回ENOMEM。跟踪发现是esp_wifi_internal_tx返回了此错误,esp_wifi_internal_tx没有源码了。请问有人遇到过此问题吗,是如何修正此问题的?谢谢。