Wireless control of Arduino Robot

I've got an idea and I'm not sure whether it can work or not. Hope someone can give me any suggestion.

I've used ESP-12E to receive data from Cloud MQTT and the message will be displayed in the serial monitor of the Arduino Ide. This part works fine.

Next, I need to send the received data from ESP-12E to the Arduino Robot and the Arduino Robot will move depends on the data. Basically, it will have FOUR different commands will be sent from the Cloud MQTT. Therefore, I decided to connect the four commands to the four different digital pins of the ESP-12E (e.g. D0-D3). The relevant digital pin will become HIGH when the respective command is received. Then, the four digital pins will be connected to the four digitals pins of the Arduino Robot Control board as well (e.g. TKD0-TKD3). Thus, when one command is received, the respective digital pin on the ESP-12E will become HIGH and the Arduino Robot will receive the changes as well.

Can this work?

Arduino Robot: https://www.arduino.cc/en/Guide/Robot
Cloud MQTT: https://www.cloudmqtt.com/
ESP-12E: https://www.amazon.com/HiLetgo-Version-NodeMCU-Internet-Development/dp/B010O1G1ES/ref=cm_cr_arp_d_product_top?ie=UTF8

What you describe should work if you are content just to have 4 simple commands. In fact, using 4 I/O pins you could have a choice among 15 different commands. For 4 commands you only need 3 pins (assuming that "No command" is actually a 5th command)

However if the ESP-12E is attached to the robot why not get it to send a serial message to the Arduino board. Then you have a much wider range of options and nuances.

...R

Robin2:
However if the ESP-12E is attached to the robot why not get it to send a serial message to the Arduino board. Then you have a much wider range of options and nuances.

Because I think the method that I want to do will be much simple since I'm a beginner in programming. Isn't it?

Sin2:
Because I think the method that I want to do will be much simple since I’m a beginner in programming. Isn’t it?

If it does what you want, go for it.

…R

Robin2:
If it does what you want, go for it.

...R

Okay, I'll try it. Thanks for your helping.