Leonardo Ribeiro Gonçalves
Published

Envie e colete dados utilizando plataforma TAURUS

Utilizando a placa NodeMCU com ESP8266 integrado, estabeleça comunicação com a plataforma de Internet das Coisas!

EasyProtip4 hours827
Envie e colete dados utilizando plataforma TAURUS

Things used in this project

Hardware components

NodeMCU ESP8266 Breakout Board
NodeMCU ESP8266 Breakout Board
×1

Software apps and online services

Taurus Platform
Das Coisas Taurus Platform

Story

Read more

Code

NodeMCU code

Arduino
Código para se conectar a plataforma Taurus
/**
 * By: Leonardo Gonçalves - Das Coisas - Minas Gerais - Brazil
 *
 *  Created on: 24.05.2015
 *
 */



#include "Arduino.h"        
#include <ESP8266WiFi.h>    
#include <taurus.h>         

const char* ssid = "SSID";   
const char* password = "PASS";
char*actID = "ACT_ID";
int act_status;

taurus taurus ("SERIAL");  

void setup()
{
  Serial.begin(115200);   
  delay(10);

  Serial.println();
  Serial.println();
  Serial.print("Connecting to");
  Serial.println(ssid);

  WiFi.begin(ssid, password);

  while (WiFi.status() != WL_CONNECTED)
  {
    delay(500);
    Serial.print(".");
  }
  Serial.println("");
  Serial.println("WiFi Connected");
  Serial.println("IP Address: ");
  Serial.println(WiFi.localIP());

  pinMode(LED_BUILTIN, OUTPUT);
}

void loop()
{
  act_status = taurus.read_dActuator(actID);
  digitalWrite(LED_BUILTIN, act_status);
}

Credits

Leonardo Ribeiro Gonçalves

Leonardo Ribeiro Gonçalves

18 projects • 66 followers
Master Degree Student at Federal University of Itajuba - Brazil / Telecommunications Engineer graduated at Inatel - Minas Gerais - Brazil

Comments