No Server

gaurav
Posts: 82
Joined: Mon May 08, 2017 9:49 am

I build the gate module firmware from ESP8266-IoT-SDK flashed it into nodemcu.
when the gate module is connected to server I can use it through my smartphone. But my question was "what if it is not connected to the server?".
To which you told me to use hardware Switches/buttons in this way

Zybi wrote: Thu Jul 13, 2017 2:08 pm
gaurav wrote: Thu Jul 13, 2017 1:42 pm How can I use button to operate relay on Gate module?
For example, as in this firmware:

https://github.com/zchmielak/ESP8266/bl ... O_v2.0.rar

please read file "readme.txt" in *.rar package.
After reading the "readme.txt" I tried it the same way by pullingup the cfg_button and activating it by providing gnd.
But when I pressed the button the relay didn't switched. I tried it on the firmware which I built from the ESP8266-IoT-SDK and flashed it on the nodemcu. I am sorry if I didn't mentioned it earlier.
User avatar
pzygmunt
Posts: 18207
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Contact:

"GPIO0 /D3 CFG_Button/BUTTON1 to switch manually RELAY1 - operate in two modes. On the port must be pull-up.
Active - connect to GND

GPIO4 /D2 BUTTON2 to switch manually RELAY2 - on the port must be pull-up (resistor 4k7-10k connected
between port and +3,3V). Active - connect to GND"
gaurav
Posts: 82
Joined: Mon May 08, 2017 9:49 am

Its not working on the gate module firmware that I build from IoT-SDK.
User avatar
pzygmunt
Posts: 18207
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Contact:

Gate module from SDK doesn't support this functionality.
Ask @Zybi for source codes of https://github.com/zchmielak/ESP8266/bl ... O_v2.0.rar
gaurav
Posts: 82
Joined: Mon May 08, 2017 9:49 am

Ok. Thank you for helping me out. :)
Post Reply

Return to “General discussion”