esp_event_post string data getting corrupted

Suresh
Posts: 6
Joined: Wed May 03, 2023 5:16 am

esp_event_post string data getting corrupted

Postby Suresh » Mon Sep 04, 2023 12:09 pm

Hi

I have created one test application. I am trying to post an event along with large string data (~2048 kb).
Initial 8 chars are getting corrupted and remaining data i am getting correct.

Code: Select all

        ESP_ERROR_CHECK(esp_event_post(APPLICATION_MESSAGES, UID_MESSAGE_RECEIVED, (void*) &event, sizeof(message_event_t), portMAX_DELAY));
Can some one please guide me.

Build environment:
Mcu Type :esp32
ESP IDF Ver :v4.4.3

Who is online

Users browsing this forum: HamGuy, Heggico and 96 guests