Component: Ethernet (ESP32) (Comms: Networking)
| Author | Matrix Ltd. |
| Version | 1.0 |
| Category | Comms: Networking |
Ethernet (ESP32) component
Wired Ethernet component for ESP32 modules with an RMII PHY, such as the Olimex ESP32-POE, ESP32-POE-ISO and ESP32-GATEWAY. The socket macro interface is identical to the WLAN (ESP32) component so the Network Comms, Web Server, MQTT and other network layers work unchanged on top of it.
Version information
Library Version, Component Version, Date, Author, Info
1, 1.0, 23-10-26, BR, Component created - wired Ethernet for ESP32 with RMII PHY (ESP32-POE). Socket interface identical to WLAN (ESP32), wireless-only macros removed, Initialise brings the link up and Deinitialise tears it down
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
AcceptClose
| AcceptClose | |
| Close the socket associated with the Accepted incoming connection | |
| Return | |
AcceptOpen
| AcceptOpen | |
| Returns 1 if there is an incoming connection on the listening port | |
| Return | |
Deinitialise
| Deinitialise | |
| Stops the Ethernet link, removes the driver and powers down the PHY.
Call Initialise again to bring the network back up. Returns 1 if successful Returns 0 if not | |
| Return | |
Initialise
ReadIP
ReadIPString
| ReadIPString | |
| Collects the local IP address and returns it as an ASCII string.
e.g. "192.168.0.1" | |
| Return | |
ReadLinkStatus
| ReadLinkStatus | |
| Returns 1 if the Ethernet cable link is up, 0 if the link is down. | |
| Return | |
ReadMACString
| ReadMACString | |
| Returns the MAC address of the Ethernet interface as an ASCII string.
e.g. "24:0A:C4:12:34:56" | |
| Return | |
SocketClose
| SocketClose | |
| Return | |
SocketConnect
| SocketConnect | |
| Address | |
| Port | |
| Return | |
SocketListen
| SocketListen | |
| Listen on, or bind, local port to already opened socket.
Returns 1 if OK, 0 if fail | |
| Port | |
| Return | |
SocketOpen
| SocketOpen | |
| Returns 1 if socket sucessfully opened | |
| Return | |
SocketRead
| SocketRead | |
| Buffer | |
| Size | |
| Return | |
SocketWrite
| SocketWrite | |
| Buffer | |
| Size | |
| Return | |
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_ETH_ESP32.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_ETH_ESP32.fcfx