IoT JumpWay ESP8266 Arduino Basic MQTT Example


AdamMiltonBarker
Intel Software Innovator
Introduction
Here you will find sample device scripts for connecting ESP8266 to the TechBubble Technologies IoT JumpWay using the Arduino IDE. The codes allow you to set up a basic device that allows communication via the TechBubble IoT JumpWay using MQTT. Once you understand how it works you are free to add as many actuators and sensors to your device and modify your code accordingly.
Hardware Requirements
- ESP8266.
Software requirements
- ESP8266WiFi
- PubSubClient MQTT
- ArduinoJson
- WiFiClientSecure
Connection Credentials
-
Follow the TechBubble Technologies IoT JumpWay Developer Program (BETA) Location Device Doc- to set up your device.
-
Add your WiFi credentials to the following code which will allow your ESP8266 to connect to the internet.
const char* ssid = "YourSSID";
const char* password = "YourWiFiPassword";
- Retrieve your connection credentials and update the config.json file with your new connection credentials and sensor setting.
String locationID = "YourLocationID";
String zoneID = "YourZoneID";
String deviceID = "YourDeviceID";
char deviceName[] = "YourDeviceName";
char mqttUsername[] = "YourDeviceMQTTUsername";
char mqttPassword[] = "YourDeviceMQTTPassword";
IoT JumpWay Arduino Bugs/Issues
Please feel free to create issues for bugs and general issues you come accross whilst using the IoT JumpWay Arduino Examples. You may also use the issues area to ask for general help whilst using the IoT JumpWay Arduino Examples in your IoT projects.
IoT JumpWay Arduino Contributors