Internet Ethernet ESP8266 Ready-To-Flash Package

Files:
  Internet_Ethernet_ESP12E_20260807.bin
  flash_ethernet_internet.bat
  esptool.exe

Target:
  ESP8266 / ESP-12E / NodeMCU v2 style board

Flash settings:
  Address: 0x00000
  Baud: 57600
  Reset method: nodemcu by default
  Flash mode: dout, set by PlatformIO build config

How to flash:
  1. Connect ESP8266 to USB.
  2. Disconnect RS-485 module from ESP UART if possible.
  3. Double-click flash_ethernet_internet.bat.
  4. Type the COM port, for example COM3.
  5. Press Enter for reset method unless flashing fails.

After flashing:
  1. Connect ESP Ethernet to any router with internet.
  2. The ESP will use router DHCP/gateway for internet.
  3. Reset the ESP, connect to its ETPL_... setup hotspot within 10 minutes,
     and open http://192.168.10.1 in the browser.
  4. The setup page now includes Internet server upload fields for API host,
     port, path, bearer token and upload interval.
  5. Default internet test server settings are:
       API host: webhook.site
       API port: 80
       API path: /90365bac-b234-452c-8cee-03e24f6aecae/200
       Bearer token: blank
  6. Docklight should show API upload result: HTTP 200.
  7. Dashboard can run from any laptop/PC as long as it reads the same server.

Commissioning timing:
  Inverter poll: 5 seconds
  DHCP attempt timeout/retry: 15 seconds
  Webhook test upload: 10 seconds
  Online status: based on repeated ESP heartbeat, independent of inverter data

Heartbeat recovery:
  The firmware sends each HTTP heartbeat as one bounded ENC28J60 write.
  HTTP response waiting is limited to 3 seconds.
  After 3 failed uploads it automatically restarts Ethernet and DHCP.
  Docklight prints an increasing API heartbeat sequence for every attempt.

Note:
  Router/Gateway IP is not the API host. It only gives internet to ESP.
  API host must be the public internet server domain/IP.
  This firmware does not force Webhook.site forever; a real server endpoint
  saved from the ESP setup page is kept after restart.

If flashing fails:
  - Try reset method ck or none in the batch prompt.
  - Hold FLASH/BOOT, tap RESET, then start flashing.
  - Use a short USB cable and correct driver.
  - Keep RS-485 disconnected during flashing.
