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/