Skip to content

hafidhh/ESP8266-Update-Program-over-HTTPS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESP8266-Update-Program-over-HTTPS

Program for updating esp8266 firmware over https (ota over https). In this project i updated esp8266 program from github.


Arduino IDE

If using Arduino IDE rename the source code (main.cpp) in src folder to main.ino and copy certs.h to same folder


certs.h

to get certs.h

  1. install phyton3
  2. open terminal go to cert.py directory
  3. input command
    python cert.py -s raw.githubusercontent.com -n firmware > certs.h
    or
    python3 cert.py -s raw.githubusercontent.com -n firmware > certs.h

Error No module named 'cryptography'

install cryptography
python -m pip install cryptography

.bin file (firmware)

To get .bin file

  • Arduino IDE
    go to sketch choose export compile binary
  • PlatformIO VSCode
    Build project, go to .pio/build/nodemcuv2/