Search found 566 matches
- Mon Nov 29, 2021 6:38 am
- Forum: IDEs for ESP-IDF
- Topic: ESP32_Devkit-V4 try to change/reduce transmitting power
- Replies: 2
- Views: 10927
Re: ESP32_Devkit-V4 try to change/reduce transmitting power
esp_wifi_set_max_tx_power(2). What am I doing wrong? https://github.com/espressif/esp-idf/blob/ef98a363e35dbc6bfd1caadfab8706874930f278/components/esp_wifi/include/esp_wifi.h#L897-L915 Param power unit is 0.25dBm, range is [8, 84] corresponding to 2dBm - 20dBm. 2 is invalid. Check your return values.
- Mon Nov 29, 2021 6:32 am
- Forum: ESP32 Arduino
- Topic: ESP32 GPIO function configuration via configuration registers.
- Replies: 4
- Views: 9117
Re: ESP32 GPIO function configuration via configuration registers.
I've been using pinMode( 12, INPUT_PULLUP); , but this always return 0 (false) pinMode is void: https://github.com/espressif/arduino-esp32/blob/399f4ecbb3a4cef21e2bffa37adb6190356dfb76/cores/esp32/esp32-hal-gpio.h#L88 Do you mean that reading the pin level (ie. with digitalRead(12)) afterwards alwa...
- Mon Nov 29, 2021 6:02 am
- Forum: Hardware
- Topic: All esp32 models reported internal memory
- Replies: 2
- Views: 5016
Re: S2 and S3 internal memory
I think that IRAM is not added to free heap on old esp32, which is a bug i believe, and maybe D/IRAM too (just educated guessing) There's a good post here that explains why: https://blog.espressif.com/esp32-programmers-memory-model-259444d89387 The IRAM can also be used for data, but with two impor...
- Thu Nov 25, 2021 1:12 am
- Forum: IDEs for ESP-IDF
- Topic: VS: editor disagrees with build results
- Replies: 6
- Views: 17815
Re: VS: editor disagrees with build results
Again, your Intellisense configuration is separate from your CMake configuration. You will never fix a compilation error by tweaking your Intellisense paths.
Make sure the component REQUIRES/PRIV_REQUIRES lwip in its CMakeLists.txt and then
Make sure the component REQUIRES/PRIV_REQUIRES lwip in its CMakeLists.txt and then
Code: Select all
#include "lwip/sockets.h"
- Mon Nov 15, 2021 12:39 pm
- Forum: ESP-IDF
- Topic: va_list returns something wrong
- Replies: 4
- Views: 2719
Re: va_list returns something wrong
You can't forward the va_list to sprintf. Try vsprintf.
- Sat Nov 13, 2021 7:14 am
- Forum: General Discussion
- Topic: Having an ESP32 control a reed switch with wifi and deep sleep on LIPO battery
- Replies: 1
- Views: 2031
Re: Having an ESP32 control a reed switch with wifi and deep sleep on LIPO battery
20uA sleep current is easily achievable, excluding poor component selection or design error. No problems there. 5mA average active current is too low, considering most of that time will be actively transmitting/receiving over WiFi and doing work (TLS handshake, JSON construction). Wakeups per hour ...
- Sat Nov 13, 2021 12:57 am
- Forum: IDEs for ESP-IDF
- Topic: (solved) VS Code not seeing symbol definition
- Replies: 2
- Views: 9487
Re: VS Code not seeing symbol definition
See the "defines" item in this example config: https://code.visualstudio.com/docs/cpp/ ... e#_example
- Fri Oct 29, 2021 1:28 pm
- Forum: ESP-IDF
- Topic: Problems with converting espnow code to C++
- Replies: 6
- Views: 4267
Re: Problems with converting espnow code to C++
example_espnow_init: esp_now_peer_info_t *peer = new esp_now_peer_info_t[sizeof(esp_now_peer_info_t)]; send_param = new example_espnow_send_param_t[sizeof(example_espnow_send_param_t)]; I don't think your intention is to allocate arrays of these objects. send_param->buffer = new uint8_t(13); I try t...
- Fri Oct 29, 2021 5:09 am
- Forum: ESP-IDF
- Topic: How to reconfigure I2C speed on-the-fly?
- Replies: 1
- Views: 1772
Re: How to reconfigure I2C speed on-the-fly?
You can use i2c_param_config again with the updated config
- Fri Oct 29, 2021 5:00 am
- Forum: ESP-IDF
- Topic: Problems with converting espnow code to C++
- Replies: 6
- Views: 4267
Re: Problems with converting espnow code to C++
Likely culprit heresenudajayalath wrote: ↑Fri Oct 29, 2021 4:21 amCode: Select all
ESP_LOGI(TAG, "MAC : %d", esp_now_send(send_param->dest_mac, send_param->buffer, send_param->len));