I have an Arduino Uno and ESP8266-01 Wifi module with me currently. So I'm going to use ESP8266 to connect to the MQTT broker to allow me publish data to other devices. However, I have a problem with uploading my sketch due to the following error:
error: espcomm_open failed
error: espcomm_upload_mem failed
error: espcomm_upload_mem failed
I uploaded the example sketch WIFIScan provided by Arduino IDE to test ESP8266 whether working or not, so the code is not a problem. This is how I connect ESP8266 to the laptop.
The Arduino Uno is connected to my laptop through USB port.