Connecting Esp8266 wifi module with Arduino uno


#1

Hi, i am using Esp8266 wifi module with Arduino uno for my project. As i am new to this platform, i don’t know how to select and use the following setup. Please help me connect the setup to the platform. Thank u.


#2

follow the steps from here : https://github.com/myDevicesIoT/Cayenne-MQTT-Arduino/blob/master/examples/Connections/ESP8266Shield/ESP8266Shield.ino
change the hardware serial to a software serial on your arduino uno.


#3

What to select in “Step 1: Choose a device to start a project”.


#4

@shramiksalgaonkar Do you have any tutorials.

where to get:

char username[] = "MQTT_USERNAME";
char password[] = "MQTT_PASSWORD";
char clientID[] = "CLIENT_ID";

#5

on your cayenne dashboard go to add new > devices/widget > bring your own thing. and you will get your MQTT credential.


#6

@shramiksalgaonkar how do i connect my arduino uno?
Should i make ESP8266-01 as shield as mentioned in the examples?


#7

What should i select here. Plz help…


#8

bring your own thing.


#9

@shramiksalgaonkar Having error:

C:\Users\Nebula\Documents\Arduino\libraries\Cayenne-MQTT-Arduino-master\src/CayenneMQTTESP8266Shield.h:29:34: fatal error: ESP8266SerialLibrary.h: No such file or directory

** #include “ESP8266SerialLibrary.h”**

** ^**

compilation terminated.


#10

you have not installed the library. please follow the steps from the link i gave.

Steps:
    1. Install the ESP8266SerialLibrary.zip library via the Arduino IDE (Sketch->Include Library->Add .ZIP Library) from the Cayenne extras/libraries
       folder (e.g. My Documents\Arduino\libraries\CayenneMQTT\extras\libraries) to compile this example.