Page 1 of 1

ESP32 Remote Control Using MQTT

Posted: Mon Sep 02, 2019 1:34 pm
by schkillll
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.

Re: ESP32 Remote Control Using MQTT

Posted: Mon Sep 02, 2019 1:44 pm
by PeterR
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.

Re: ESP32 Remote Control Using MQTT

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

Just follow the MQTT process of subscibe/...

I am using MQTT for sensors/actuators on esp32.

Re: ESP32 Remote Control Using MQTT

Posted: Tue Sep 03, 2019 6:35 pm
by schkillll
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.

Re: ESP32 Remote Control Using MQTT

Posted: Tue Sep 03, 2019 7:02 pm
by tommeyers