Skip to content
Turma da graduação da ECT - UFRN
PHP HTML C++ JavaScript Hack C Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
projeto1
projeto2
projeto3
projeto4
projeto5
projeto6
projetosfinais
Ma
readme.md

readme.md

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();
    }
  }
}
You can’t perform that action at this time.