---
title: "MQTTClient_Auth and UdpNTPClient on RASPBERRY_PI_PICO on MBED RASPBERRY_PI_PICO with W5x00 using Eth"
url: "https://maker.wiznet.io/WIZnet/projects/mqttclient-auth-and-udpntpclient-on-raspberry-pi-pico-on-mbed-raspberry-pi-pico-with-w5x00-using-eth/"
markdown_url: "https://maker.wiznet.io/WIZnet/projects/mqttclient-auth-and-udpntpclient-on-raspberry-pi-pico-on-mbed-raspberry-pi-pico-with-w5x00-using-eth/md"
type: "UCC: User Created Content"
author: "khoih"
author_url: "https://github.com/khoih-prog/EthernetWebServer#9-advancedwebserver-on-mbed-raspberry_pi_pico-with-w5x00-using-ethernet3-library"
editor: "WIZnet"
editor_url: "https://maker.wiznet.io/"
original_author: "khoih"
original_url: "https://github.com/khoih-prog/EthernetWebServer#9-advancedwebserver-on-mbed-raspberry_pi_pico-with-w5x00-using-ethernet3-library"
published: "2023-02-12"
language: "en"
hardware: ["WIZnet W5500"]
likes: 4
views: 449
comments: 0
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# MQTTClient_Auth and UdpNTPClient on RASPBERRY_PI_PICO on MBED RASPBERRY_PI_PICO with W5x00 using Eth

> Running examples of MQTT and NTP client using Ethernet libraries

Original author: khoih (source: https://github.com/khoih-prog/EthernetWebServer#9-advancedwebserver-on-mbed-raspberry_pi_pico-with-w5x00-using-ethernet3-library)

## Components

- **WIZnet W5500** x 1 ([docs](https://docs.wiznet.io/Product/Chip/Ethernet/W5500))

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

The following are debug terminal output when running example [MQTTClient_Auth](https://github.com/khoih-prog/EthernetWebServer/blob/master/examples/MQTTClient_Auth) on **RASPBERRY_PI_PICO** with W5x00 using Ethernet Library using [**Arduino-mbed RP2040** core](https://github.com/arduino/ArduinoCore-mbed)

```plaintext
Start MQTTClient_Auth on MBED RASPBERRY_PI_PICO with W5x00 using Ethernet Library
EthernetWebServer v1.7.1
[EWS] =========== USE_ETHERNET ===========
[EWS] Default SPI pinout:
[EWS] MOSI: 3
[EWS] MISO: 4
[EWS] SCK: 2
[EWS] SS: 5
[EWS] =========================
[EWS] Board : MBED RASPBERRY_PI_PICO , setCsPin: 5
=========================
Currently Used SPI pinout:
MOSI:3
MISO:4
SCK:2
SS:5
=========================
Using mac index = 10
Connected! IP address: 192.168.2.94
Attempting MQTT connection to broker.emqx.io...connected
Message Send : MQTT_Pub => Hello from MQTTClient_Auth on MBED RASPBERRY_PI_PICO with W5x00 using Ethernet Library
Message arrived [MQTT_Pub] Hello from MQTTClient_Auth on MBED RASPBERRY_PI_PICO with W5x00 using Ethernet Library
```

#### **UdpNTPClient on RASPBERRY_PI_PICO with W5x00 using EthernetLarge Library**

The following are debug terminal output and screen shot when running example [UdpNTPClient](https://github.com/khoih-prog/EthernetWebServer/blob/master/examples/UdpNTPClient) on **RASPBERRY_PI_PICO** with W5x00 using EthernetLarge Library using [**Earle Philhower’s arduino-pico core** v1.3.1+](https://github.com/earlephilhower/arduino-pico)

```plaintext
Start UdpNTPClient on RASPBERRY_PI_PICO with W5x00 using EthernetLarge Library
EthernetWebServer v1.7.1
[EWS] =========== USE_ETHERNET_LARGE ===========
[EWS] Default SPI pinout:
[EWS] MOSI: 19
[EWS] MISO: 16
[EWS] SCK: 18
[EWS] SS: 17
[EWS] =========================
[EWS] RPIPICO setCsPin: 17
_pinCS = 0
W5100 init, using SS_PIN_DEFAULT = 10, new ss_pin = 10, W5100Class::ss_pin = 17
W5100::init: W5500, SSIZE =8192
=========================
Currently Used SPI pinout:
MOSI:19
MISO:16
SCK:18
SS:17
=========================
Using mac index = 18
You're connected to the network, IP = 192.168.2.106
UDP Packet received, size 48
From 128.138.140.44, port 123
Seconds since Jan 1 1900 = 3830118654
Unix time = 1621129854
The UTC time is 1:50:54
UDP Packet received, size 48
From 128.138.140.44, port 123
Seconds since Jan 1 1900 = 3830118666
Unix time = 1621129866
The UTC time is 1:51:06
```

---

Source: https://maker.wiznet.io/WIZnet/projects/mqttclient-auth-and-udpntpclient-on-raspberry-pi-pico-on-mbed-raspberry-pi-pico-with-w5x00-using-eth/
