Page 1 of 1

MQTT - Save datra to a variable

Posted: Fri Mar 20, 2020 8:56 pm
by sreedhar
Hi Guys,

I am new to esp32, I am trying to implement MQTT using the example (TCP) provided. I am able to establish connection and sub to topics.

I want to know how I can save the data and topic to variables from event MQTT_EVENT_DATA.

Kindly help.

Regards,
Sreedhar

Re: MQTT - Save datra to a variable

Posted: Sat Mar 21, 2020 2:04 pm
by tommeyers

Re: MQTT - Save datra to a variable

Posted: Sun Mar 22, 2020 10:40 pm
by sreedhar
Thank you.. I was able to save the data after some tinkering.

Thanks.