Skip to content
This repository was archived by the owner on Jan 29, 2023. It is now read-only.

Commit b758489

Browse files
authored
v1.0.1 to use Ethernet_Generic library, etc.
### Releases v1.0.1 1. Use new [Ethernet_Generic library](https://github.com/khoih-prog/Ethernet_Generic) as default for W5x00. 2. Add support to SPI1 for RP2040 using [arduino-pico core](https://github.com/earlephilhower/arduino-pico) 3. Rewrite all the examples to support new features 4. Use new `waitForLink()` function of QNEthernet 5. Update `Packages' Patches`
1 parent 1eebd75 commit b758489

8 files changed

+174
-923
lines changed

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Please ensure to specify the following:
2929
Arduino IDE version: 1.8.19
3030
ESP32 Core Version 2.0.2
3131
OS: Ubuntu 20.04 LTS
32-
Linux xy-Inspiron-3593 5.13.0-37-generic #42~20.04.1-Ubuntu SMP Tue Mar 15 15:44:28 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
32+
Linux xy-Inspiron-3593 5.13.0-39-generic #44~20.04.1-Ubuntu SMP Thu Mar 24 16:43:35 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
3333
3434
Context:
3535
I encountered an endless loop while trying to connect to Local WiFi.

README.md

+119-857
Large diffs are not rendered by default.

changelog.md

+11
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,24 @@
1111
## Table of Contents
1212

1313
* [Changelog](#changelog)
14+
* [Releases v1.0.1](#releases-v101)
1415
* [Initial Releases v1.0.0](#Initial-Releases-v100)
1516

1617
---
1718
---
1819

1920
## Changelog
2021

22+
### Releases v1.0.1
23+
24+
1. Use new [Ethernet_Generic library](https://github.com/khoih-prog/Ethernet_Generic) as default for W5x00.
25+
2. Add support to SPI1 for RP2040 using [arduino-pico core](https://github.com/earlephilhower/arduino-pico)
26+
3. Rewrite all the examples to support new features
27+
4. Use new `waitForLink()` function of QNEthernet
28+
5. Update `Packages' Patches`
29+
2130
### Initial Releases v1.0.0
2231

2332
1. Initial porting and coding to support nRF52, SAMD21, SAMD51, STM32F/L/H/G/WB/MP1, Teensy, RP2040-based boards, besides ESP8266, ESP32 (ESP32, ESP32_S2, ESP32_S3 and ESP32_C3) and WT32_ETH01. Spporting Ethernet shields W5100, W5200, W5500, ENC28J60, Teensy 4.1 NativeEthernet/QNEthernet.
33+
34+

library.json

+8-27
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "MQTTPubSubClient_Generic",
3-
"version": "1.0.0",
4-
"description": "MQTT and MQTT over WebSoket Client for Arduino. Now supporting nRF52, SAMD21, SAMD51, STM32F/L/H/G/WB/MP1, Teensy, SAM DUE, RP2040-based boards, besides ESP8266, ESP32 (ESP32, ESP32_S2, ESP32_S3 and ESP32_C3) and WT32_ETH01. Ethernet shields W5100, W5200, W5500, ENC28J60, Teensy 4.1 NativeEthernet/QNEthernet.",
3+
"version": "1.0.1",
4+
"description": "MQTT and MQTT over WebSoket Client for Arduino. Now supporting nRF52, SAMD21, SAMD51, STM32F/L/H/G/WB/MP1, Teensy, SAM DUE, RP2040-based boards, besides ESP8266, ESP32 (ESP32, ESP32_S2, ESP32_S3 and ESP32_C3) and WT32_ETH01. Ethernet shields W5100, W5200, W5500, ENC28J60, Teensy 4.1 NativeEthernet/QNEthernet. Ethernet_Generic library is used as default for W5x00",
55
"keywords": "mqtt, websocket, wifi, ethernet, tcp",
66
"authors":
77
[
@@ -40,13 +40,13 @@
4040
{
4141
"owner": "khoih-prog",
4242
"name": "WiFiWebServer",
43-
"version": ">=1.6.1",
43+
"version": ">=1.7.0",
4444
"platforms": ["*"]
4545
},
4646
{
4747
"owner": "khoih-prog",
4848
"name": "EthernetWebServer",
49-
"version": ">=2.0.0",
49+
"version": ">=2.1.2",
5050
"platforms": ["*"]
5151
},
5252
{
@@ -92,28 +92,9 @@
9292
"platforms": ["*"]
9393
},
9494
{
95-
"owner": "adafruit",
96-
"name": "Ethernet2",
97-
"version": ">=1.0.4",
98-
"platforms": ["*"]
99-
},
100-
{
101-
"owner": "sstaub",
102-
"name": "Ethernet3",
103-
"version": ">=1.5.5",
104-
"platforms": ["*"]
105-
},
106-
{
107-
"owner": "arduino-libraries",
108-
"name": "Ethernet",
109-
"version": ">=2.0.0",
110-
"platforms": ["*"]
111-
},
112-
{
113-
"owner": "openslab-osu",
114-
"name": "EthernetLarge",
115-
"version": ">=2.0.0",
116-
"platforms": ["*"]
95+
"owner": "khoih-prog",
96+
"name": "Ethernet_Generic",
97+
"version": "^2.0.1"
11798
},
11899
{
119100
"name": "WiFi101",
@@ -122,7 +103,7 @@
122103
{
123104
"owner": "ssilverman",
124105
"name": "QNEthernet",
125-
"version": ">=0.13.0",
106+
"version": ">=0.14.0",
126107
"platforms": ["teensy"]
127108
}
128109
],

library.properties

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
name=MQTTPubSubClient_Generic
2-
version=1.0.0
2+
version=1.0.1
33
author=hideakitai, Khoi Hoang <[email protected]>
44
maintainer=Khoi Hoang <[email protected]>
55
sentence=MQTT and MQTT over WebSoket Client for Arduino
6-
paragraph=Now supporting nRF52, SAMD21, SAMD51, STM32F/L/H/G/WB/MP1, Teensy, SAM DUE, RP2040-based boards, besides ESP8266, ESP32 (ESP32, ESP32_S2, ESP32_S3 and ESP32_C3) and WT32_ETH01. Ethernet shields W5100, W5200, W5500, ENC28J60, Teensy 4.1 NativeEthernet/QNEthernet.
6+
paragraph=Now supporting nRF52, SAMD21, SAMD51, STM32F/L/H/G/WB/MP1, Teensy, SAM DUE, RP2040-based boards, besides ESP8266, ESP32 (ESP32, ESP32_S2, ESP32_S3 and ESP32_C3) and WT32_ETH01. Ethernet shields W5100, W5200, W5500, ENC28J60, Teensy 4.1 NativeEthernet/QNEthernet. Ethernet_Generic library is used as default for W5x00
77
category=Communication
88
url=https://github.com/khoih-prog/MQTTPubSubClient_Generic
99
architectures=*
10-
depends=WiFiNINA_Generic, WiFiWebServer, EthernetWebServer, WebServer_WT32_ETH01, EthernetWebServer_STM32
10+
depends=WiFiNINA_Generic, WiFiWebServer, EthernetWebServer, Ethernet_Generic, WebServer_WT32_ETH01, EthernetWebServer_STM32
1111
includes=MQTTPubSubClient_Generic.h

platformio/platformio.ini

+25-30
Original file line numberDiff line numberDiff line change
@@ -43,37 +43,32 @@ lib_compat_mode = strict
4343

4444
lib_deps =
4545
; PlatformIO 4.x
46-
WiFiNINA_Generic@~1.8.14-3
47-
WiFiWebServer@~1.6.1
48-
EthernetWebServer@~2.0.0
49-
WebServer_WT32_ETH01@~1.4.1
50-
EthernetWebServer_STM32@>=1.3.3
51-
Ethernet@~2.0.0
52-
EthernetLarge@~2.0.0
53-
Ethernet2@~1.0.4
54-
Ethernet3@~1.5.5
55-
EthernetENC@~2.0.2
56-
UIPEthernet@~2.0.8
57-
STM32duino LwIP@>=2.1.2
58-
STM32duino STM32Ethernet@>=1.2.0
59-
QNEthernet@~0.13.0
60-
https://github.com/khoih-prog/WiFi101
46+
; WiFiNINA_Generic@~1.8.14-3
47+
; WiFiWebServer@~1.7.0
48+
; EthernetWebServer@~2.1.2
49+
; WebServer_WT32_ETH01@~1.4.1
50+
; EthernetWebServer_STM32@>=1.4.0
51+
; Ethernet_Generic@>=2.0.1
52+
; EthernetENC@~2.0.2
53+
; UIPEthernet@~2.0.11
54+
; STM32duino LwIP@>=2.1.2
55+
; STM32duino STM32Ethernet@>=1.2.0
56+
; QNEthernet@~0.14.0
57+
; https://github.com/khoih-prog/WiFi101
58+
6159
; PlatformIO 5.x
62-
; khoih-prog/WiFiNINA_Generic@~1.8.14-3
63-
; khoih-prog/WiFiWebServer@~1.6.1
64-
; khoih-prog/EthernetWebServer@~2.0.0
65-
; khoih-prog/WebServer_WT32_ETH01@~1.4.1
66-
; khoih-prog/EthernetWebServer_STM32@>=1.3.3
67-
; PaulStoffregen/Ethernet@~2.0.0
68-
; PaulStoffregen/EthernetLarge@~2.0.0
69-
; adafruit/Ethernet2@~1.0.4
70-
; sstaub/Ethernet3@~1.5.5
71-
; jandrassy/EthernetENC@~2.0.2
72-
; UIPEthernet/UIPEthernet@~2.0.8
73-
; stm32duino/STM32duino LwIP@>=2.1.2
74-
; stm32duino/STM32duino STM32Ethernet@>=1.2.0
75-
; ssilverman/QNEthernet@~0.13.0
76-
; https://github.com/khoih-prog/WiFi101
60+
khoih-prog/WiFiNINA_Generic@~1.8.14-3
61+
khoih-prog/WiFiWebServer@~1.7.0
62+
khoih-prog/EthernetWebServer@~2.1.2
63+
khoih-prog/WebServer_WT32_ETH01@~1.4.1
64+
khoih-prog/EthernetWebServer_STM32@>=1.4.0
65+
khoih-prog/Ethernet_Generic@~2.0.1
66+
jandrassy/EthernetENC@~2.0.2
67+
uipethernet/UIPEthernet@~2.0.11
68+
stm32duino/STM32duino LwIP@>=2.1.2
69+
stm32duino/STM32duino STM32Ethernet@>=1.2.0
70+
ssilverman/QNEthernet@~0.14.0
71+
https://github.com/khoih-prog/WiFi101
7772

7873
build_flags =
7974
; set your debug output (default=Serial)

src/MQTTPubSubClient_Generic.h

+5-4
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,26 @@
1313
Built by Khoi Hoang https://github.com/khoih-prog/MQTTPubSubClient_Generic
1414
Licensed under MIT license
1515
16-
Version: 1.0.0
16+
Version: 1.0.1
1717
1818
Version Modified By Date Comments
1919
------- ----------- ---------- -----------
2020
1.0.0 K Hoang 23/03/2022 Initial porting and coding to add support to many boards, using Ethernet or WiFi
21+
1.0.0 K Hoang 11/04/2022 Use Ethernet_Generic library as default. Support SPI1/SPI2 for RP2040/ESP32
2122
*****************************************************************************************************************************/
2223

2324
#pragma once
2425

2526
#ifndef MQTT_PUBSUB_CLIENT_GENERIC_H
2627
#define MQTT_PUBSUB_CLIENT_GENERIC_H
2728

28-
#define MQTT_PUBSUB_CLIENT_GENERIC_VERSION "MQTTPubSubClient_Generic v1.0.0"
29+
#define MQTT_PUBSUB_CLIENT_GENERIC_VERSION "MQTTPubSubClient_Generic v1.0.1"
2930

3031
#define MQTT_PUBSUB_CLIENT_GENERIC_VERSION_MAJOR 1
3132
#define MQTT_PUBSUB_CLIENT_GENERIC_VERSION_MINOR 0
32-
#define MQTT_PUBSUB_CLIENT_GENERIC_VERSION_PATCH 0
33+
#define MQTT_PUBSUB_CLIENT_GENERIC_VERSION_PATCH 1
3334

34-
#define MQTT_PUBSUB_CLIENT_GENERIC_VERSION_INT 1000000
35+
#define MQTT_PUBSUB_CLIENT_GENERIC_VERSION_INT 1000001
3536

3637
#include <Arduino.h>
3738
#include <Client.h>

src/MQTTPubSubClient_Generic_Debug.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@
1313
Built by Khoi Hoang https://github.com/khoih-prog/MQTTPubSubClient_Generic
1414
Licensed under MIT license
1515
16-
Version: 1.0.0
16+
Version: 1.0.1
1717
1818
Version Modified By Date Comments
1919
------- ----------- ---------- -----------
2020
1.0.0 K Hoang 23/03/2022 Initial porting and coding to add support to many boards, using Ethernet or WiFi
21+
1.0.0 K Hoang 11/04/2022 Use Ethernet_Generic library as default. Support SPI1/SPI2 for RP2040/ESP32
2122
*****************************************************************************************************************************/
2223

2324
#pragma once

0 commit comments

Comments
 (0)