ESP32 Remote Control Using MQTT

schkillll
Posts: 16
Joined: Tue Jul 23, 2019 1:46 pm

ESP32 Remote Control Using MQTT

Postby schkillll » Mon Sep 02, 2019 1:34 pm

Can i control an esp32 connected to my home wifi using MQTT server of any broker and pass a command to esp32 like "0" or "1"? Brokers like adafruit.io or eclipse.io.

I am using esp-idf for my project.

PeterR
Posts: 621
Joined: Mon Jun 04, 2018 2:47 pm

Re: ESP32 Remote Control Using MQTT

Postby PeterR » Mon Sep 02, 2019 1:44 pm

Yes, as long as your ESP32 MQTT client can 'see' the broker & you set an appropriate QOS then your ESP may register an interest in a value and then see changes to that value.
& I also believe that IDF CAN should be fixed.

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

Re: ESP32 Remote Control Using MQTT

Postby tommeyers » Mon Sep 02, 2019 6:49 pm

Yes.

Just follow the MQTT process of subscibe/...

I am using MQTT for sensors/actuators on esp32.
IT Professional, Maker
Santiago, Dominican Republic

schkillll
Posts: 16
Joined: Tue Jul 23, 2019 1:46 pm

Re: ESP32 Remote Control Using MQTT

Postby schkillll » Tue Sep 03, 2019 6:35 pm

tommeyers wrote:
Mon Sep 02, 2019 6:49 pm
Yes.

Just follow the MQTT process of subscibe/...

I am using MQTT for sensors/actuators on esp32.
Cool, but how to write this ? As i am new to idf.

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

Re: ESP32 Remote Control Using MQTT

Postby tommeyers » Tue Sep 03, 2019 7:02 pm

IT Professional, Maker
Santiago, Dominican Republic

Who is online

Users browsing this forum: No registered users and 153 guests