MQTT - Save datra to a variable

sreedhar
Posts: 6
Joined: Fri Mar 20, 2020 8:50 pm

MQTT - Save datra to a variable

Postby sreedhar » Fri Mar 20, 2020 8:56 pm

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

tommeyers
Posts: 184
Joined: Tue Apr 17, 2018 1:51 pm
Location: Santiago, Dominican Republic

Re: MQTT - Save datra to a variable

Postby tommeyers » Sat Mar 21, 2020 2:04 pm

IT Professional, Maker
Santiago, Dominican Republic

sreedhar
Posts: 6
Joined: Fri Mar 20, 2020 8:50 pm

Re: MQTT - Save datra to a variable

Postby sreedhar » Sun Mar 22, 2020 10:40 pm

Thank you.. I was able to save the data after some tinkering.

Thanks.

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot] and 74 guests