Things used in this project

Hardware components:
Nodemcu
NodeMCU ESP8266 Breakout Board
×1
Software apps and online services:
Logo transp
Das Coisas Taurus Platform

Code

NodeMCU codeArduino
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

1510947 574075536015733 1458936564 n
Leonardo Ribeiro Gonçalves
17 projects • 62 followers
Master Degree Student at Federal University of Itajuba - Brazil / Telecommunications Engineer graduated at Inatel - Minas Gerais - Brazil
Contact

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Sign up / LoginProjectsPlatformsTopicsContestsLiveAppsBetaBlog