Search found 384 matches

by permal
Mon Aug 07, 2017 3:25 pm
Forum: General Discussion
Topic: Socket issues
Replies: 34
Views: 16428

Socket issues

Hi, Firstly, let me state that this question is about establishing connections on the TCP/IP-level, me mentioning higher level stuff is to describe how I see the issue. I'm experiencing intermittent issues with connecting to my MQTT broker (mosquitto) from my ESP32 while at the same time I am able t...
by permal
Mon Aug 07, 2017 3:04 pm
Forum: ESP32 IDF
Topic: to_string
Replies: 4
Views: 3434

Re: to_string

Yes, stringstream is an alternative, though it is rather heavy just to convert a single integer into an alphanumeric.
by permal
Mon Aug 07, 2017 12:58 pm
Forum: ESP32 IDF
Topic: to_string
Replies: 4
Views: 3434

Re: to_string

Oh, what a hassle :P
by permal
Mon Aug 07, 2017 8:16 am
Forum: ESP32 IDF
Topic: to_string
Replies: 4
Views: 3434

to_string

Hi,

std::to_string(...) is supposed be included in C++11 via <string.h>, but it seems to not be included when compiling with the Xtensa port of GCC. Am I missing something, or is it actually not available? If not, can it be made available?
by permal
Sun Aug 06, 2017 8:44 pm
Forum: General Discussion
Topic: std::shared_ptr with ESP-IDF (updated)
Replies: 8
Views: 4963

Re: std::shared_ptr with ESP-IDF (updated)

@ESP_Igrr That would be very much appreciated by the community :) And thank you for the prompt replies.
by permal
Sun Aug 06, 2017 7:38 pm
Forum: General Discussion
Topic: std::shared_ptr with ESP-IDF (updated)
Replies: 8
Views: 4963

Re: std::shared_ptr with ESP-IDF (updated)

Oh, wow. You really should make this super-clear in the documentation - is it even documented? I can't find any note of it the doc site (https://esp-idf.readthedocs.io) and searching for "thread" yields nothing relating to this. Can you please make abundantly clear to prevent others from spending da...
by permal
Sun Aug 06, 2017 5:02 pm
Forum: General Discussion
Topic: std::shared_ptr with ESP-IDF (updated)
Replies: 8
Views: 4963

Re: std::shared_ptr with ESP-IDF (updated)

I haven't gone through your library code yet, but do you think there is a chance that tasks on two CPUs are accessing/modifying shared_ptr instances pointing to a single object? Since shared_ptr is not thread-safe, that could be an issue. @Iggr The standard states that std::shared_ptr IS thread-saf...
by permal
Sun Aug 06, 2017 3:59 pm
Forum: General Discussion
Topic: std::shared_ptr with ESP-IDF (updated)
Replies: 8
Views: 4963

Re: std::shared_ptr with ESP-IDF (updated)

I've now had my tests running for six hours without any issues on a single core, longest time on dual core has been ~15 minutes.
by permal
Sun Aug 06, 2017 10:00 am
Forum: General Discussion
Topic: std::shared_ptr with ESP-IDF (updated)
Replies: 8
Views: 4963

std::shared_ptr with ESP-IDF (updated)

Hi, I'm writing a C++ framework on top of FreeRTOS/ESP-IDF in order to allow application development on ESP-IDF "fully C++" and also remove a lot of the hassle/pitfalls associated with multi threading. So far I've got classes for Tasks, Queues, Mutexes, Socket, Timers, Performance timers and a (memo...
by permal
Sat Aug 05, 2017 5:20 pm
Forum: ESP32 IDF
Topic: FreeRTOS on Core1: Guru Meditation Error of type LoadProhibited occurred on core 1. Exception was unhandled.
Replies: 4
Views: 3308

Re: FreeRTOS on Core1: Guru Meditation Error of type LoadProhibited occurred on core 1. Exception was unhandled.

LoadProhibited usually means you have an invalid pointer, at least that is what I've learned from my own code.

Go to advanced search