Search found 2 matches

by Blaise70
Thu Oct 04, 2018 7:58 pm
Forum: ESP IoT Solution
Topic: How to pass payload to a task
Replies: 3
Views: 8611

Re: How to pass payload to a task

Hi Chris and Chegewara,

Thanks for your kind reply. Yes, I see that queue is a handful solution for this situation. I also like the idea to define my own struct which represents only the necessary information.
Thanks for your kind help again.
Best regards,
Blaise
by Blaise70
Tue Oct 02, 2018 8:39 pm
Forum: ESP IoT Solution
Topic: How to pass payload to a task
Replies: 3
Views: 8611

How to pass payload to a task

Hi, I'd like to pass the payload (event->data and event->topic) to a task from the mqtt_event_handler. The event handler receives a pointer to the struct esp_mqtt_event_handle_t and it can be processed in the event handler itself. In my understanding this event handler is kind of call back function ...