Arduino Forum

Using Arduino => Interfacing w/ Software on the Computer => Topic started by: Sin2 on Feb 01, 2019, 12:34 am

Title: Using MQTT as the wireless communication with Arduino Robot
Post by: Sin2 on Feb 01, 2019, 12:34 am
Hi. I plan to use the MQTT as the wireless communication with Arduino Robot with the ESP8266 components. The signals will be sent from the node-RED to the ESP8266 using MQTT and the Arduino Robot will receive the signals from the ESP8266.
Link of Arduino Robot: https://www.arduino.cc/en/Guide/Robot
Will this flow works? Can anyone give me some suggestion? Thank you.
Title: Re: Using MQTT as the wireless communication with Arduino Robot
Post by: PaulS on Feb 05, 2019, 10:18 pm
Quote
Will this flow works?
For some definition of work, yes.

Having something publish a message, and having the Arduino subscribe to it, will cause a huge lag between when the message is published and when the subscriber(s) know about it.

If you can live with the lag, then go ahead. If not, MQTT and publishing and subscribing are NOT in your future.

TurnLeft is not the kind of message where any delay is tolerable, in my opinion.