|
| 1 | +# IoT JumpWay Arduino ESP8266 Basic MQTT Example |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | +## Introduction |
| 6 | + |
| 7 | +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. |
| 8 | + |
| 9 | +## Hardware requirements |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | +1. ESP8266. |
| 14 | + |
| 15 | +## Software requirements |
| 16 | + |
| 17 | +1. ESP8266WiFi |
| 18 | +2. PubSubClient MQTT |
| 19 | +3. ArduinoJson |
| 20 | +4. WiFiClientSecure |
| 21 | + |
| 22 | +## Connection Credentials |
| 23 | + |
| 24 | +- Follow the [TechBubble Technologies IoT JumpWay Developer Program (BETA) Location Device Doc-](https://github.com/TechBubbleTechnologies/IoT-JumpWay-Docs/blob/master/4-Location-Devices.md "TechBubble Technologies IoT JumpWay Developer Program (BETA) Location Device Doc") to set up your device. |
| 25 | + |
| 26 | +- Add your WiFi credentials to the following code which will allow your ESP8266 to connect to the internet. |
| 27 | + |
| 28 | +``` |
| 29 | + const char* ssid = "YourSSID"; |
| 30 | + const char* password = "YourWiFiPassword"; |
| 31 | +``` |
| 32 | + |
| 33 | +- Retrieve your connection credentials and update the config.json file with your new connection credentials and sensor setting. |
| 34 | + |
| 35 | +``` |
| 36 | + String locationID = "YourLocationID"; |
| 37 | + String zoneID = "YourZoneID"; |
| 38 | + String deviceID = "YourDeviceID"; |
| 39 | + char deviceName[] = "YourDeviceName"; |
| 40 | + char mqttUsername[] = "YourDeviceMQTTUsername"; |
| 41 | + char mqttPassword[] = "YourDeviceMQTTPassword"; |
| 42 | +``` |
| 43 | + |
| 44 | +## IoT JumpWay Arduino ESP8266 Examples Bugs/Issues |
| 45 | + |
| 46 | +Please feel free to create issues for bugs and general issues you come accross whilst using the IoT JumpWay Arduino ESP8266 Examples. You may also use the issues area to ask for general help whilst using the IoT JumpWay Arduino ESP8266 Examples in your IoT projects. |
| 47 | + |
| 48 | +## IoT JumpWay Arduino ESP8266 Contributors |
| 49 | + |
| 50 | +- [Adam Milton-Barker, TechBubble Technologies Founder](https://github.com/AdamMiltonBarker "Adam Milton-Barker, TechBubble Technologies Founder") |
0 commit comments