motor on roller blind ws - martikainen87/Home-Automation GitHub Wiki
Open a CMD prompt and enter the url where you have python installed
C:\Users\martikainen\AppData\Local\Programs\Python\Python37-32\Scripts
issue these commands one at a time, where the port COM7 needs to be updated to whatever port ur esp is connected to, and the bin file that is compiled with arduino, here's a working file. https://1drv.ms/u/s!AgpjVMpYqcPxitpNmqlQ6YSR00wzVg
The bin file needs to be placed in the same directory as esptool.py, or u need to specify the location.
esptool.py --port COM7 erase_region 0x0F4000 0x008000
esptool.py --port COM7 erase_flash
esptool.py --port COM7 write_flash -fs 1MB -fm dout 0x0 motor_on_a_roller_blind-ws.ino.nodemcu.bin
When it's finished it will act as an access point with the SSID "BlindsConnectAP". Connect your phone to this wifi and go to http://192.168.4.1 Click "Configure WiFi"
Choose your Wifi and type the password for it. Enter the information about your MQTT server Hit save and the ESP will reboot.