Skip to content

ESP8266 as Access Point and Web Server , Control GPIO and Servo by Web

Notifications You must be signed in to change notification settings

jaava/ESP8266GPIOandServo

 
 

Repository files navigation

ESP8266GPIOandServo

ESP8266 as Access Point and Web Server , Control GPIO and Servo by Web

html to C code file using guide

html2Ccode.py was wrote on python2 language

Command

python html2Ccode.py -i -o -p is html source code file is output source code file is a name of variable that used in your code

Example

Run script

python html2Ccode.py -i index.html -o index2.h -p htmlCode

Add file to arduino project

Sketch->add file choose your file that generated by html2Ccode.py like as : index2.h or your generated file

Include file to your code

Ex. add #include<index2.h> to your code please replace index2.h by your outputfile

Initialize parameter

Ex. add htmlCode_init() please replace htmlCode by your parameter

Using by send text on parameter from first to last

for (i=0;i<pageCount;i++){
  client.print(htmlCode[i]); please replace htmlCode by your parameter
}

About

ESP8266 as Access Point and Web Server , Control GPIO and Servo by Web

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 30.2%
  • Other 25.8%
  • HTML 23.1%
  • Python 20.9%