Giter Site home page Giter Site logo

cayenne-mqtt-esp8266's Introduction

Cayenne MQTT ESP8266 Library

The Cayenne MQTT ESP8266 Library provides functions to easily connect to the Cayenne IoT project builder. This library is designed to work with ESP8266 WiFi modules. With it you can send data to and receive data from Cayenne.

alt text

Adafruit HUZZAH ESP8266 Image by lady ada is licensed under CC BY-SA 3.0

Requirements

Hardware

Software

Getting Started

Environment Setup

  1. Download and install the Arduino IDE.
  2. Under File -> Preferences add http://arduino.esp8266.com/stable/package_esp8266com_index.json to the Additional Boards Manager URLs field.
  3. Install the esp8266 platform from Tools -> Board -> Boards Manager.
  4. Download this library as a zip file here.
  5. Install the downloaded zip library from Sketch -> Include Library -> Add .ZIP Library.
  6. Connect your ESP8266 module to your computer using a USB to Serial FTDI or console cable.
  7. Select your ESP8266 module and port from the Tools menu.

Cayenne Setup

  1. Create your Cayenne account at https://www.cayenne-mydevices.com.
  2. Add a new device using the Bring Your Own Thing API selection.

Building Examples

  1. Open the included example sketch from File -> Examples -> Cayenne-MQTT-ESP8266.
  2. Modify the included sketch with your network info, and the Cayenne authentication info you received when adding your device.
  3. Compile and upload the sketch to your device. Uploading may require setting the device into bootload mode. For the Adafruit HUZZAH ESP8266 module this is done with the folowing steps:
  4. Hold down the GPIO0 button.
  5. Click the Reset button.
  6. Let go of the GPIO0 button.
  7. The red LED should light up, indicating the device is ready for uploading.
  8. Upload your sketch.
  9. Check the Cayenne dashboard to ensure it is receiving sample data from your device.

Compatibility

This library was tested with the Adafruit HUZZAH ESP8266 breakout module. It should also work with other standard ESP8266 modules that are compatible with the Arduino IDE.

Contributions

Cayenne MQTT Libraries

Additional libraries are available for connecting to Cayenne on other platforms and devices. These can be found at https://github.com/myDevicesIoT.

cayenne-mqtt-esp8266's People

Contributors

jburhenn avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.