Search found 41 matches

by brazoayeye
Thu Nov 23, 2023 7:23 am
Forum: ESP-IDF
Topic: idf 3.0.9 WIFI_REASON_4WAY_HANDSHAKE_TIMEOUT on good APs
Replies: 3
Views: 6127

Re: idf 3.0.9 WIFI_REASON_4WAY_HANDSHAKE_TIMEOUT on good APs

Nope, only a workaround (when fails i try also other aps with same SSID fixing the MAC in the config)
by brazoayeye
Mon Sep 04, 2023 9:02 am
Forum: ESP-IDF
Topic: Max size for std::vector
Replies: 1
Views: 1918

Max size for std::vector

Hello, i'm using large std::vector in my code. In some rare eventualities one of them grow larger than 32k. My code crashes when i perform a push_back in a vector<u8> that has 32768 elements. If i catch the exception I have std::bad_alloc and it's like libsupc++/new_op.cc @ line 54 I have esp_get_fr...
by brazoayeye
Fri Sep 01, 2023 8:22 pm
Forum: ESP-IDF
Topic: Use ota partition to store NVS
Replies: 0
Views: 3742

Use ota partition to store NVS

Hello, I have a data logger that connects to wifi and send data to a server, but server/wifi could goes down and in that case now it stores data in ram sending them as soon as the server is reachable again. Since I have to store multiple bytes (es 20bytes/s) ram space runs out after few hours (I hav...
by brazoayeye
Tue Aug 29, 2023 7:29 am
Forum: ESP-IDF
Topic: Library to print enum names
Replies: 0
Views: 795

Library to print enum names

Hello, there are a lot of enum in esp-idf and it's a little uncomfortable to print them directly as int for debug, because I must open code or browser to check the meaning of the number. I uses esp_err_to_name for esp_err_t, but it will be useful to have a similar function for wifi_event_t, wifi_err...
by brazoayeye
Tue Aug 29, 2023 7:00 am
Forum: ESP-IDF
Topic: Problem with C++ and derived class
Replies: 4
Views: 2512

Re: Problem with C++ and derived class

I found the problem: I forgot a protected prm p; inside prmHandler class header hence the compiler also tried to build a prm::prm() when I build prmHandler.

Sorry for wasting your time
by brazoayeye
Mon Aug 28, 2023 2:57 pm
Forum: ESP-IDF
Topic: Problem with C++ and derived class
Replies: 4
Views: 2512

Re: Problem with C++ and derived class

I don't get the point. since in the code I use delete prmObj; i have the error described here , because I must define ~prm as virtual. Now, when i call "delete prmObj" the compiler switches between ~prm() and ~prmHandler() depending on type of prmObj. In cpp I have implemented prm::~prm(){ } prmHand...
by brazoayeye
Fri Aug 04, 2023 2:48 pm
Forum: ESP-IDF
Topic: Problem with C++ and derived class
Replies: 4
Views: 2512

Problem with C++ and derived class

Hello, Above a summary of my code: ///////////// .h files ///////////// class prm { public: prm(char * a, uint16_t b, bool c, bool d, int e); virtual ~prm(); ... class prmHandler : public prm{ public: prmHandler(char * a, uint16_t b, bool c, bool d, int e, std::string f, int g, int h); ~prmHandler()...
by brazoayeye
Thu Jun 24, 2021 8:17 am
Forum: ESP-IDF
Topic: DHCP problems with different aps (BSS Transition Management)
Replies: 0
Views: 1850

DHCP problems with different aps (BSS Transition Management)

With and esp-idf 4.3 I'm experiencing problems with a network with multiple aps with the same SSID. If I connect to an AP, being closer to that one or setting the bssid all works well. If I connect to another AP, I have IP_EVENT_STA_GOT_IP (about 5s after WIFI_EVENT_STA_CONNECTED) with an invalid IP...
by brazoayeye
Wed Jun 23, 2021 3:10 pm
Forum: ESP-IDF
Topic: Log disconnection reason
Replies: 0
Views: 1909

Log disconnection reason

Hello, when I have an event WIFI_EVENT_STA_DISCONNECTED with wifi_event_sta_disconnected_t, is there a way to print the wifi_event_sta_disconnected_t.reason in a readable manner without explicit array/chars definition? Thanks PS: I also have a strange error code, do you know the reason and how to so...
by brazoayeye
Mon Jun 21, 2021 10:04 am
Forum: ESP-IDF
Topic: All REQUIRES missing in the CMakeLists.txt
Replies: 1
Views: 4799

All REQUIRES missing in the CMakeLists.txt

Hello, I'm updating a project from version 3.0.9 to 4.3 release, and I'm fixing legacy code to have a compiling version. I installed the VS Code pluign, and compiled example project without (remaining) problems. My current CMakeList is something like idf_component_register(INCLUDE_DIRS "." "addrs" "...