Skip to content

a simple chat server for the esp8266.

License

Notifications You must be signed in to change notification settings

Kuuhhl/esp8266Chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Logo

esp8266Chat

a simple chat server for the esp8266.

Screenshots

Screenshot

Installation (for NodeMCU)

  1. Download the latest release .bin files.
  2. Download and install esptool.py.
  3. Flash the .bin files using this command: esptool.py write_flash 0x0 firmware.bin 0x00300000 littlefs.bin.

Usage

  1. Connect the esp8266 to a powerbank.
  2. Connect to the newly created Wifi-Hotspot Chat Server.
  3. Open any URL in your browser, it should automatically redirect you. (it doesn't work? try to replace https:// in your URL with http://.)

Endpoints

  • / default landing page.
  • /styles.css css styles for the landing page.
  • /scripts.js js scripts for the landing page.
  • /sendText POST endpoint to send a new message. Parameters: nickname, text.
  • /showText content of messages.txt file.
  • /lastWrite timestamp of last write.
  • /clear clear all messages.