paulmartinetti / ttgo-server-ajax-simple

ttgo twatch 2020, simple web server with basic routes to control watch display backlight on /off, and type some text from a browser on the same LAN

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ttgo node mcu ajax simple

ttgo serves a simple Web page gui to any device connected to WiFi. Turn backlight on / off and display message on the watch that is typed into the gui when backlight is on

To tweak the HTML, it's easier to edit the HTML in VSC then paste it each time into the Arduino IDE variable on the index.h page.

The server or wifi connection fails pretty often. I have to close the IDEs, reboot the watch often..but otherwise it works. I started with the Hello Server example, but discovered that some libaries and code were not needed to do these simple tasks.

Sketch uses 865733 bytes (13%) of program storage space. Maximum is 6553600 bytes. Global variables use 40088 bytes (0%) of dynamic memory, leaving 4481896 bytes for local variables. Maximum is 4521984 bytes



Great article on strings

https://cpp4arduino.com/2020/02/07/how-to-format-strings-without-the-string-class.html

About

ttgo twatch 2020, simple web server with basic routes to control watch display backlight on /off, and type some text from a browser on the same LAN


Languages

Language:C++ 63.4%Language:HTML 36.6%