ESPtool commands
1sudo esptool.py --port /dev/ttyUSB0 read_flash 0x00000 0x100000 image-T1Original.bin
2
3sudo esptool.py --port /dev/ttyUSB0 erase_flash
4
5sudo esptool.py --port /dev/ttyUSB0 write_flash -fs 1MB -fm dout 0x0 sonoff.bin
1sudo esptool.py --port /dev/ttyUSB0 read_flash 0x00000 0x100000 image-T1Original.bin
2
3sudo esptool.py --port /dev/ttyUSB0 erase_flash
4
5sudo esptool.py --port /dev/ttyUSB0 write_flash -fs 1MB -fm dout 0x0 sonoff.bin