---
title: "khoih-prog / MQTTPubSubClient_Generic"
url: "https://maker.wiznet.io/mayuri/projects/khoih-prog-mqttpubsubclient-generic/"
markdown_url: "https://maker.wiznet.io/mayuri/projects/khoih-prog-mqttpubsubclient-generic/md"
type: "UCC: User Created Content"
author: "khoih prog"
author_url: "https://github.com/khoih-prog/MQTTPubSubClient_Generic"
editor: "WIZnet"
editor_url: "https://maker.wiznet.io/"
original_author: "khoih prog"
original_url: "https://github.com/khoih-prog/MQTTPubSubClient_Generic"
published: "2023-02-01"
language: "en"
hardware: ["WIZnet W5500", "WIZnet W5200", "WIZnet W5100 ethernet shield"]
likes: 2
views: 364
comments: 0
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# khoih-prog / MQTTPubSubClient_Generic

> MQTTPubSubClient_Generic Library (MQTT Client for ESP8266, ESP32, etc.)

Original author: khoih prog (source: https://github.com/khoih-prog/MQTTPubSubClient_Generic)

## Components

- **WIZnet W5500** x 1 ([docs](https://docs.wiznet.io/Product/Chip/Ethernet/W5500))
- **WIZnet W5200** x 1 ([docs](https://docs.wiznet.io/Product/iEthernet/W5200/))
- **WIZnet W5100 ethernet shield** x 1 ([docs](https://www.wiznet.hk/en/open-source-hardware/102-w5100s-ethernetshield.html?search_query=W5100+ethernet+shield&results=84))

WIZnet parts: W5500 ([Datasheet](https://docs.wiznet.io/Product/Chip/Ethernet/W5500/datasheet?utm_source=maker&utm_medium=project&utm_campaign=w5500), [product hub](https://maker.wiznet.io/products/w5500/))

## Article

Depending on which Ethernet card you're using:

- [`Ethernet_Generic library v2.7.1+`](https://github.com/khoih-prog/Ethernet_Generic) for W5100, W5200 and W5500/WIZ550io/WIZ850io/USR-ES1 with Wiznet W5500 chip. [![GitHub release](https://camo.githubusercontent.com/c9cb7d4002b260b3264112f8bf3d50d097d07c9865919eedb5473647aacba16a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6b686f69682d70726f672f45746865726e65745f47656e657269632e737667)](https://github.com/khoih-prog/Ethernet_Generic/releases/latest)

- [`EthernetENC library v2.0.3+`](https://github.com/jandrassy/EthernetENC) for ENC28J60. [![GitHub release](https://camo.githubusercontent.com/18635be685f6b77a4d0c9c0e81a296ed4a335c26702004b70c4c15223f1d9162/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6a616e6472617373792f45746865726e6574454e432e737667)](https://github.com/jandrassy/EthernetENC/releases/latest). **New and Better**

- [`UIPEthernet library v2.0.12+`](https://github.com/UIPEthernet/UIPEthernet) for ENC28J60. [![GitHub release](https://camo.githubusercontent.com/cbf1a7d161c4fc57dfa49ff66b993281fd61362f761fc5e0855fd76bcc43f641/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f55495045746865726e65742f55495045746865726e65742e737667)](https://github.com/UIPEthernet/UIPEthernet/releases/latest)

- [`STM32Ethernet library v1.3.0+`](https://github.com/stm32duino/STM32Ethernet) for built-in LAN8742A Ethernet on (Nucleo-144, Discovery). [![GitHub release](https://maker.wiznet.io/upload/mirror/body/b9ae44560ad4d18336bf.png)](https://github.com/stm32duino/STM32Ethernet/releases/latest). To be used with [`LwIP library v2.1.2+`](https://github.com/stm32duino/LwIP). [![GitHub release](https://camo.githubusercontent.com/7ee5d856276aa823a05026eb967f9b385b02d71a1b3dc75fbbbf760c8caa8c18/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f73746d33326475696e6f2f4c7749502e737667)](https://github.com/stm32duino/LwIP/releases/latest).

- [`NativeEthernet Library version stable111+`](https://github.com/vjmuzik/NativeEthernet) for Teensy 4.1 built-in Ethernet.

- [`QNEthernet Library version v0.16.0+`](https://github.com/ssilverman/QNEthernet) Teensy 4.1 built-in Ethernet. **New**

1. [`WiFiWebServer library v1.10.1+`](https://github.com/khoih-prog/WiFiWebServer) if necessary to use certain WiFi/WiFiNINA features. To install, check [![arduino-library-badge](https://camo.githubusercontent.com/d581758a5f7b241dde5293a479ed8f2bff6c72a1c58850c6dfb8a9f01bc75a80/68747470733a2f2f7777772e617264752d62616467652e636f6d2f62616467652f576946695765625365727665722e7376673f)](https://www.ardu-badge.com/WiFiWebServer)

2. [`WiFi101_Generic Library v1.0.0+`](https://github.com/khoih-prog/WiFi101_Generic) to use SAMD MKR1000, etc. boards with WiFi101 to send large data. To install. check [![arduino-library-badge](https://maker.wiznet.io/upload/mirror/body/8fb62cb3ae5025318e14.png)](https://www.ardu-badge.com/WiFi101_Generic).

3. [`WebSockets_Generic library v2.16.1+`](https://github.com/khoih-prog/WebSockets_Generic) if necessary to use `MQTT-over-WebSockets` features. To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/WebSockets_Generic.svg?)](https://www.ardu-badge.com/WebSockets_Generic)

---

---

Source: https://maker.wiznet.io/mayuri/projects/khoih-prog-mqttpubsubclient-generic/
