Mbed library for ENC28J60 Ethernet modules. Full support for TCP/IP and UDP Server, Client and HTTP server (webserver). DHCP and DNS is included.

Dependents:   mBuino_ENC28_MQTT Nucleo_Web_ENC28J60 Nucleo_Web_ENC28J60_ADC Serial_over_Ethernet ... more

Library for ENC28J60 Ethernet modules.

/media/uploads/hudakz/enc28j60_module01.jpg

Ported to mbed from Norbert Truchsess's UIPEthernet library for Arduino. Thank you Norbert!

  • Full support for persistent (streaming) TCP/IP and UDP connections Client and Server each, ARP, ICMP, DHCP and DNS.
  • Works with both Mbed OS 2 and Mbed OS 5.

Usage:

  • Import the library into your project.
  • Add #include "UipEthernet.h" to main.cpp
  • Create one instance of the UipEthernet class initialized with the MAC address you'd like to use and SPI pins of the connected Mbed board.

Example programs:

Import programWebSwitch_ENC28J60

HTTP Server serving a simple webpage which enables to remotely turn a digital output on/off. Compile, download, run and type 'IP_address/secret/' (don't forget the last '/') into your web browser and hit ENTER.

Import programHTTPServer_Echo_ENC28J60

A simple HTTP server echoing received requests. Ethernet connection is over an ENC28J60 board. Usage: Type the server's IP address into you web browser and hit <ENTER>.

Import programTcpServer_ENC28J60

Simple TCP/IP Server using the UIPEthernet library for ENC28J60 Ethernet boards.

Import programTcpClient_ENC28J60

Simple TCP/IP Client using the UIPEthernet library for ENC28J60 Ethernet boards.

Import programUdpServer_ENC28J60

Simple UDP Server using the UIPEthernet library for ENC28J60 Ethernet boards.

Import programUdpClient_ENC28J60

Simple UDP Client using the UIPEthernet library for ENC28J60 Ethernet boards.

Import programMQTT_Hello_ENC28J60

MQTT Client example program. Ethernet connection is via an ENC28J60 module.

History

Mbed library for ENC28J60 Ethernet modules. default tip

2020-07-23, by hudakz [Thu, 23 Jul 2020 15:30:54 +0000] rev 18

Mbed library for ENC28J60 Ethernet modules.


Library for the ENC28J60 Ethernet modules.

2020-06-05, by hudakz [Fri, 05 Jun 2020 15:21:49 +0000] rev 17

Library for the ENC28J60 Ethernet modules.


Library for ENC28J60 Ethernet modules.

2020-06-05, by hudakz [Fri, 05 Jun 2020 15:12:21 +0000] rev 16

Library for ENC28J60 Ethernet modules.


Timeout parameter added for the 'connect' function, SPI speed reduced from 20 to 10 Mb/s, debug messages fixed ...

2019-09-07, by hudakz [Sat, 07 Sep 2019 17:42:42 +0000] rev 15

Timeout parameter added for the 'connect' function, SPI speed reduced from 20 to 10 Mb/s, debug messages fixed ...


UDP socket improved.

2019-09-03, by hudakz [Tue, 03 Sep 2019 09:16:55 +0000] rev 14

UDP socket improved.


TcpClient, TcpServer and UipEthernet modified to make TcpClient work.

2019-08-31, by hudakz [Sat, 31 Aug 2019 20:34:52 +0000] rev 13

TcpClient, TcpServer and UipEthernet modified to make TcpClient work.


"TcpClient::close()" modified.

2019-08-30, by hudakz [Fri, 30 Aug 2019 19:15:42 +0000] rev 12

"TcpClient::close()" modified.


"set_network" method of Mbed style added.

2019-08-30, by hudakz [Fri, 30 Aug 2019 08:11:40 +0000] rev 11

"set_network" method of Mbed style added.


Added methods for TcpClient to get remote client's IP address and peer name.

2019-08-27, by hudakz [Tue, 27 Aug 2019 22:08:54 +0000] rev 10

Added methods for TcpClient to get remote client's IP address and peer name.


Mbed OS 5 support added and API modified.

2019-08-27, by hudakz [Tue, 27 Aug 2019 15:01:10 +0000] rev 9

Mbed OS 5 support added and API modified.