---
title: "Arduino MQTT IPv6"
url: "https://maker.wiznet.io/WIZnet/projects/arduino-mqtt-ipv6/"
markdown_url: "https://maker.wiznet.io/WIZnet/projects/arduino-mqtt-ipv6/md"
type: "UCC: User Created Content"
author: "Taylor.An"
author_url: "https://www.hackster.io/TaylorAn/arduino-mqtt-ipv6-f15d7e"
editor: "WIZnet"
editor_url: "https://maker.wiznet.io/"
original_author: "Taylor.An"
original_url: "https://www.hackster.io/TaylorAn/arduino-mqtt-ipv6-f15d7e"
published: "2023-05-31"
language: "en"
hardware: ["WIZnet W6100"]
likes: 0
views: 196
comments: 0
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# Arduino MQTT IPv6

> Arduino MQTT is available via IPv6.

Original author: Taylor.An (source: https://www.hackster.io/TaylorAn/arduino-mqtt-ipv6-f15d7e)

## Components

- **WIZnet W6100** x 1 ([docs](https://docs.wiznet.io/Product/iEthernet/W6100/))

## Documents and links

- [WIZnet arduino-mqtt - IPv6 Branch](https://github.com/WIZnet-ArduinoEthernet/arduino-mqtt/tree/IPv6) (code)
- [WIZnet Ethernet Library - IPv6 Branch](https://github.com/Wiznet/Ethernet/tree/IPv6) (code)
- [W6100 MKR-Ethernet Shield Schematic](https://github.com/Wiznet/Hardware-Files-of-WIZnet/tree/master/08_OSHW/W6100%20MKR-Ethernet%20Shield/W6100_MKR-Ethernet_Shield_V110) (schematics)

## Article

### WIZnet Ethernet Library

The WIZnet arduino-mqtt IPv6 branch requires the WIZnet Ethernet Library IPv6 branch.

- [How to use Arduino Ethernet Library IPv6 (WIZnet Ethernet Library)](https://github.com/Wiznet/Ethernet/wiki/Howtouse)

### Download

Go to the WIZnet arduino-mqtt Github and choose the IPv6 branch.

[WIZnet arduino-mqtt IPv6](https://github.com/WIZnet-ArduinoEthernet/arduino-mqtt/tree/IPv6)

![](https://hackster.imgix.net/uploads/attachments/888048/1.jpg?auto=compress%2Cformat&w=740&h=555&fit=max)

![](https://hackster.imgix.net/uploads/attachments/888053/2.jpg?auto=compress%2Cformat&w=740&h=555&fit=max)

If you don’t want to use any git client, you can choose Download ZIP.

![](https://hackster.imgix.net/uploads/attachments/888042/3.jpg?auto=compress%2Cformat&w=740&h=555&fit=max)

No sign-in required and no sign-up required.

![](https://hackster.imgix.net/uploads/attachments/888044/4-download.jpg?auto=compress%2Cformat&w=740&h=555&fit=max)

### Extract

Copy an arduino-mqtt-IPv6.zip downloaded and paste to Arduino User Library directory.

![](https://hackster.imgix.net/uploads/attachments/888046/5-copy-paste.jpg?auto=compress%2Cformat&w=740&h=555&fit=max)

Extract an arduino-mqtt-IPv6.zip and rename to arduino-mqtt. The directory name must be arduino-mqtt.

![](https://hackster.imgix.net/uploads/attachments/888045/6-extract.jpg?auto=compress%2Cformat&w=740&h=555&fit=max)

The following is tree view after extracted and renamed.

![](https://hackster.imgix.net/uploads/attachments/888043/6-extract-2.jpg?auto=compress%2Cformat&w=740&h=555&fit=max)

### Run

Now you can run the Arduino IDE and just Choose File -> Examples -> MQTT -> W6100EthernetShield.

You can see the W6100EthernetShield of WIZnet arduino-mqtt.

![](https://hackster.imgix.net/uploads/attachments/888051/1.jpg?auto=compress%2Cformat&w=740&h=555&fit=max)

After Upload, you can see the network information messages via Serial Monitor.

This W6100EthernetShield example connects to test.mosquitto.org via IPv6. And it publishes to topic of W6100. It also subscribes topic of W6100.

![](https://hackster.imgix.net/uploads/attachments/888041/2.jpg?auto=compress%2Cformat&w=740&h=555&fit=max)

### HIVEMQ Web Socket Client

You also subscribe it at any place via web browser.

Run web browser and access [HIVEMQ Web Socket Client.](http://www.hivemq.com/demos/websocket-client/)

![](https://hackster.imgix.net/uploads/attachments/888049/3.jpg?auto=compress%2Cformat&w=740&h=555&fit=max)

Set Connection Host, Port

- Host : test.mosquitto.org

- Port : 8080

![](https://hackster.imgix.net/uploads/attachments/888047/4.jpg?auto=compress%2Cformat&w=740&h=555&fit=max)

And Connect

![](https://hackster.imgix.net/uploads/attachments/888052/5.jpg?auto=compress%2Cformat&w=740&h=555&fit=max)

Finally, you can subscribe W6100 topic.

![](https://hackster.imgix.net/uploads/attachments/888050/7.jpg?auto=compress%2Cformat&w=740&h=555&fit=max)

And you can see the message from test.mosquitto.org which W6100EthernetShield published.

![](https://hackster.imgix.net/uploads/attachments/888054/8.jpg?auto=compress%2Cformat&w=740&h=555&fit=max)

---

Source: https://maker.wiznet.io/WIZnet/projects/arduino-mqtt-ipv6/
