Page 1 of 1

EthernetWebServer for WT32_ETH01 (ESP32 + LAN8720)

Posted: Wed Jul 07, 2021 12:01 am
by khoih-prog
WebServer_WT32_ETH01 Library
How To Install Using Arduino Library Manager

Features

This WebServer_WT32_ETH01 library is a simple yet complete WebServer wrapper library for ESP32-based WT32_ETH01 boards using LAN8720 Ethernet. The functions are similar and compatible to those of ESP32 WebServer library to make life much easier to port sketches from ESP32.

This WebServer_WT32_ETH01 library also provides high-level HTTP(S), MQTT(S) and WebSockets Clien by using the functions from ESP32's HTTPClient Library

Currently supported Boards

1. WT32_ETH01 boards using ESP32-based boards and LAN8720 Ethernet


Changelog

Releases v1.1.0

1. Add SSL support
2. Add HTTPS and MQTTS examples

Releases v1.0.0

1. Initial coding to support WT32_ETH01 boards



Debug Terminal Output Samples

1. AdvancedWebServer on ESP32_DEV with ETH_PHY_LAN8720

The following are debug terminal output and screen shot when running example AdvancedWebServer on ESP32_DEV with ETH_PHY_LAN8720 (WT32_ETH01)

Image

Code: Select all

Starting AdvancedWebServer on ESP32_DEV with ETH_PHY_LAN8720
WebServer_WT32_ETH01 v1.1.0

ETH Started
ETH Connected
ETH MAC: A8:03:2A:A1:61:73, IPv4: 192.168.2.127, FULL_DUPLEX, 100Mbps
HTTP EthernetWebServer is @ IP : 192.168.2.127
..
2. MQTTS_ThingStream on ESP32_DEV with ETH_PHY_LAN8720

The terminal output of WT32_ETH01 running MQTTS_ThingStream

Code: Select all

Starting MQTTS_ThingStream on ESP32_DEV with ETH_PHY_LAN8720
WebServer_WT32_ETH01 v1.1.0
ETH MAC: A8:03:2A:A1:61:73, IPv4: 192.168.2.232, FULL_DUPLEX, 100Mbps
Waiting for NTP time sync: .
Current time: Tue Jul  6 18:38:22 2021
***************************************
esp32-sniffer/12345678/ble
***************************************
Attempting MQTT connection to mqtt.thingstream.io
...connected
Published connection message successfully!
Subcribed to: esp32-sniffer/12345678/ble
MQTT Message Send : esp32-sniffer/12345678/ble => Hello from MQTTS_ThingStream on WT32-ETH01 with ETH_PHY_LAN8720
MQTT Message receive [esp32-sniffer/12345678/ble] Hello from MQTTS_ThingStream on WT32-ETH01 with ETH_PHY_LAN8720
MQTT Message Send : esp32-sniffer/12345678/ble => Hello from MQTTS_ThingStream on WT32-ETH01 with ETH_PHY_LAN8720
MQTT Message receive [esp32-sniffer/12345678/ble] Hello from MQTTS_ThingStream on WT32-ETH01 with ETH_PHY_LAN8720