Search found 305 matches
- Fri Aug 23, 2019 8:25 am
- Forum: General Discussion
- Topic: Key Value storage for more than 200 key's and names
- Replies: 2
- Views: 3251
Re: Key Value storage for more than 200 key's and names
I have used nvs partitions of 56 and 60KB by altering the partition table. Capacity is in the thousands.
- Fri Aug 23, 2019 8:12 am
- Forum: ESP-IDF
- Topic: websocket-client message receive rate seemingly limited to 1 message per second.
- Replies: 3
- Views: 4453
Re: websocket-client message receive rate seemingly limited to 1 message per second.
It looks like the vTaskDelays are explaining it? I did not know there were now idf examples but was able to send about 700 websockets per second from Thomas Barth's code without Nagle enabled and silly numbers with it.
- Fri Aug 23, 2019 7:59 am
- Forum: ESP-IDF
- Topic: Variables losing value
- Replies: 1
- Views: 2857
Re: Variables losing value
I am only looking on a phone, but the global is a pointer and the string it points to is probably going out of scope when you delete after getting the JSON. I would investigate the lifetime and location of the string, and who is supposed to allocate and free memory. https://github.com/DaveGamble/cJS...
- Tue Aug 20, 2019 6:54 pm
- Forum: General Discussion
- Topic: Prevent Modification of NVS Data
- Replies: 6
- Views: 5851
Re: Prevent Modification of NVS Data
You could encrypt it.
- Fri Aug 16, 2019 8:30 am
- Forum: ESP-IDF
- Topic: esp_timer_start_once - LoadProhibited on the second timer_armed call 1 in a million times
- Replies: 2
- Views: 4034
Re: esp_timer_start_once - LoadProhibited on the second timer_armed call 1 in a million times
Thanks ESP_Angus. I had solved it by deleting and making a new timer instead of reusing it. Whilst this seems wasteful it meant that fewer critical sections and rechecks were needed in between timer alarm and start once and so far it is working well with heavy testing. Your input was useful to under...
- Tue Aug 06, 2019 8:18 pm
- Forum: ESP-IDF
- Topic: Persistent RAM disk
- Replies: 10
- Views: 11515
Re: Persistent RAM disk
Bear in mind that writing to flash is slow, and FATFS is slow to read and write. PSRAM is mega fast in comparison.
- Sat Aug 03, 2019 2:16 pm
- Forum: General Discussion
- Topic: OTA update without internet/WiFi network
- Replies: 12
- Views: 19051
Re: OTA update without internet/WiFi network
Very nice work username. OTA_update_posthandler() works nicely. Thanks!
- Wed Jul 31, 2019 9:57 am
- Forum: ESP-IDF
- Topic: Change memory allocating behavior for a certain component (C++)
- Replies: 4
- Views: 5102
Re: Change memory allocating behavior for a certain component (C++)
Not a direct solution, but sharing an experience that may help, or maybe you've covered all this and more already... I'm using heap in PSRAM with std::map and std::vector, but had some issues with std::vector where even after erase() the memory was still reserved on the heap. C++ 11 shrink_to_fit di...
- Tue Jul 30, 2019 6:35 pm
- Forum: ESP-IDF
- Topic: esp_timer_start_once - LoadProhibited on the second timer_armed call 1 in a million times
- Replies: 2
- Views: 4034
esp_timer_start_once - LoadProhibited on the second timer_armed call 1 in a million times
Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled. Core 0 register dump: PC : 0x40089a1b PS : 0x00060130 A0 : 0x80081ee3 A1 : 0x3ffaf950 0x40089a1b: timer_armed at C:/msys32/home/jcsba/esp/esp-idf/components/esp32/esp_timer.c:443 A2 : 0x00000000 A3 : 0x000007e0 A4 : 0...
- Fri Jul 26, 2019 2:38 pm
- Forum: ESP-IDF
- Topic: Change timeout of netconn connection - reads back correct value but timeout is still as originally set
- Replies: 0
- Views: 2130
Change timeout of netconn connection - reads back correct value but timeout is still as originally set
I normally have a 10s timeout on a netconn that I use for a websocket that serves a javascript browser app. This is good because when a client disconnects disgracefully, the connection is reset and another client can connect (such as when changing between AP and STA, or between devices). However, wh...