Coder Social home page Coder Social logo

nodemcu-iot's Introduction

ESP8266 Wifi - Arduino IDE

Steps para rodar o código local na máquina:

  1. Instalar Arduino IDE: https://www.arduino.cc/en/Main/Software

  2. Pegar código do GitHub: https://github.com/nathalials/nodemcu-iot/blob/master/NodeMCUIoT.ino

    2.1. Alterar as credenciais do wifi (linha 16 e 17)

    2.2. Alterar a org (linha 20):    
       Obs.: Sua org pode ser encontrada no início da URL https://iv9si4.internetofthings.ibmcloud.com/

    2.3. Configurar device type, device ID e token: conforme o que foi colocado na plataforma (linha 21, 22 e 23).

  3. Instalar board ESP8266WiFi:

    3.1. Abrir Arduino IDE, selecionar Arduino, preferences.

    3.2. Na janela de preferências, no campo Additional Boards Manager URLs, colocar o link: http://arduino.esp8266.com/stable/package_esp8266com_index.json e depois clicar em OK.

    3.3. No Arduino IDE, selecionar Tools - Board - Boards Manager.

    3.4. No campo de busca, digitar: esp8266. Selecionar board esp8266 e instalar.

  4. Instalar biblioteca PubSubClient:

    4.1. No Arduino IDE, selecionar Sketch - Include Library - Manage Libraries.

    4.2. Digitar PubSubClient no campo de buscar. Selecionar PubSubClient e instalar biblioteca.

  5. Instalar biblioteca: Adafruit BMP085

    5.1. Selecionar Sketch - Include library - Manage libraries

    5.2. Digitar adafruit bmp085 library no campo de busca. Selecionar adafruit bmp085 library e instalar biblioteca.

  6. Clicar em Verify (verificar código)

  7. Clicar em Upload (rodar código)

nodemcu-iot's People

Contributors

nathalials avatar

Watchers

 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.