Funcionouuuu:clap:
Só uma coisa que notei é que o led da placa aciona quando ligo o botão referente ao pino 16, e se mudo para outro pino por exemplo 13 acontece a mesma coisa.
As mentioned pin16 does not have a pull-up resistor. I would use a different pin, or switch it to an output. I would not use pin 2 at all.
try this, and change wiring accordingly. Also, make sure to update the other portions of the code.
pinMode(12, INPUT_PULLUP);
pinMode(13, INPUT_PULLUP);
pinMode(14, INPUT_PULLUP);
pinMode(4, OUTPUT);
pinMode(5, OUTPUT);
pinMode(16, OUTPUT);
As for the built-in LED, the pin associated with this will depend on the module being used. Is it a nodeMCU, weMos D1, etc.? Typically this is pin 2
EDIT - code above updated to reflect these suggestions
Pessoal agradeço muito, ficou otimo está funcionando perfeitamente como eu queria.
Muito obrigado a todos pela compreensão.
Toro, acabei de perceber uma coisa, quando desligo ele e ligo novamente ele fica pedindo para configurar a rede novamente.
Did u comment out the portion for testing?
//clean FS, for testing
//SPIFFS.format();
Olá Toro_Branco, tudo bem!
Sim, já estava desta forma nem mexi.
I just tested it, and it seems to work fine. All credentials stored upon reset and power cycling.
Although this is with the pins changed to the recommended ones.
I have updated my above code to reflect these suggestions.
O meu se acabar a energia quando volta parece que foi realizado um reset, eu tenho que configurar minha rede wi-fi nele novamente, já por outro lado está normal, quando eu troco o ssid da minha rede Wi-Fi ele pede nova configuração.
What pins are you using?
When I load my wifi credentials, and auth token (on the web portal @ 192.168.4.1). I can reset the board and power cycle, and it will automatically connect to my wifi and then to BLYNK.
Sim entendi, más o problema é se você ter vários módulos e ter que ficar reconfigurando toda vez que acabar a energia, não sei se você concorda.
O meu quando conectei a minha rede, ele trocou o IP da minha Lan do roteador, eu tive que trocar novamente a Lan do meu roteador para o que eu tinha configurado
I am not sure if I am understanding your problem? You should not need to reconfigure if the power turns off. The credentials should be stored on the chip (esp8266). I have had projects without power for weeks, and when I plug them back in they still remember the last stored wifi credentials and auth token.
sounds like a setting/issue with the router then. That you will have to figure out, as I don’t know much about routers to even begin to guess.
As mentioned, code works as it should.
Blz, de primeiro ele trocou o endereço IP LAN do meu roteador é normal isso.
Eu tenho que comentar está linha do código ou não pra funcionar corretamente?
//clean FS, for testing
//SPIFFS.format();
With it un-commented it will erase settings when starting up (power cycle,reset)
SPIFFS.format(); //clean FS, for testing
With it commented out it will save the credentials.
//SPIFFS.format(); //clean FS, for testing
Deu certo, só queria mais um ajuda!
Queria saber como faço para incluir o mesmo projeto em dois celulares, eu criei o Qrcode do meu projeto instalei em outro celular, só que o problema é que pede para criar outra conta assim gerando um novo token encima daquele meu projeto, aí o outro celular não conecta.
This is all covered in the DOCS.
Please take the time to do a little reading and research. There is a ton of information on this subject if you just take the time to look for it.
http://docs.blynk.cc/#sharing-shared-access-to-your-hardware
Consegui clonar para outro aparelho, deu certo.
Por enquanto muito obrigado Toro Branco, você foi muito legal mesmo.
Toro, uma coisa que estava vendo e que tem como incluir imagens de câmera de vídeo no app blynk.
Para isso eu tenho que criar um servidor?