Skip to content

juniordnts/InternetDasCoisas

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Internet das Coisas

Tutorial md https://guides.github.com/features/mastering-markdown/

Disciplina ministrada na graduação da Escola de Ciências e Tecnologia da UFRN

Contribuidores

  • Jilcimar
  • Vinícius
  • Maria Emanuele
  • Bruno

Dicas

Código para reset

  /*
 * circuits4you.com
 * ESP8266 software reset demo
 * This program counts from 1 to 20
 * and resets at 6 count before completing counting
*/
#include <ESP8266WiFi.h>

// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  Serial.begin(115200);
  pinMode(2, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  int i;
  
  for(i=0;i<20;i++)
  {
    digitalWrite(2, HIGH);   // turn the LED on (HIGH is the voltage level)
    delay(500);                       // wait for a second
    digitalWrite(2, LOW);    // turn the LED off by making the voltage LOW
    delay(500);                       // wait for a second
    Serial.print("count");
    Serial.println(i);

    if(i==6)
    {
      Serial.println("Resetting ESP");
      ESP.restart(); //ESP.reset();
    }
  }
}

About

Turma da graduação da ECT - UFRN

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 54.2%
  • HTML 40.3%
  • JavaScript 4.0%
  • C++ 1.2%
  • Vue 0.3%