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

Commit dc4d1a2

Browse files
authored
v1.3.0 to support Portenta_H7
### Releases v1.3.0 1. Add support to **Portenta_H7**, using either `Murata WiFi` or `Vision-shield Ethernet` 2. Add examples for `Portenta_H7_Ethernet` and `Portenta_H7_WiFi`
1 parent 9fbcce3 commit dc4d1a2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+467
-111
lines changed

README.md

Lines changed: 223 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@
5151
* [1. FullyFeatured_STM32](examples/STM32/FullyFeatured_STM32) **New**
5252
* [5. For STM32 using LAN8720](#5-For-STM32-using-LAN8720)
5353
* [1. FullyFeatured_STM32_LAN8720](examples/STM32_LAN8720/FullyFeatured_STM32_LAN8720) **New**
54+
* [6. For Portenta_H7 using Murata WiFi](#6-For Portenta_H7-using-Murata-WiFi)
55+
* [1. FullyFeatured_PortentaH7_WiFi](examples/PortentaH7_WiFi/FullyFeatured_PortentaH7_WiFi) **New**
56+
* [7. For Portenta_H7 using built-in Ethernet](#7-For Portenta_H7-using-built-in-Ethernet)
57+
* [1. FullyFeatured_PortentaH7_Ethernet](examples/PortentaH7_Ethernet/FullyFeatured_PortentaH7_Ethernet) **New**
5458
* [Example FullyFeaturedSSL_ESP32](#example-FullyFeaturedSSL_ESP32)
5559
* [1. File FullyFeaturedSSL_ESP32.ino](#1-file-FullyFeaturedSSL_ESP32ino)
5660
* [2. File defines.h](#2-file-definesh)
@@ -118,11 +122,14 @@ This [**AsyncMQTT_Generic** library](https://github.com/khoih-prog/AsyncMQTT_Gen
118122
- **Discovery (DISCO_F746NG)**
119123
- **STM32F4 boards (BLACK_F407VE, BLACK_F407VG, BLACK_F407ZE, BLACK_F407ZG, BLACK_F407VE_Mini, DIYMORE_F407VGT, FK407M1)**
120124

125+
6. **Portenta_H7** using either `Murata WiFi` or `Vision-shield Ethernet`
126+
127+
121128
---
122129

123130
#### To-be-supported Boards
124131

125-
1. **Portenta_H7** using either `Murata WiFi` or `Vision-shield Ethernet`
132+
1. Any future board with supporting AsyncTCP library
126133

127134

128135
---
@@ -391,6 +398,14 @@ Connect FDTI (USB to Serial) as follows:
391398

392399
1. [FullyFeatured_STM32_LAN8720](examples/STM32_LAN8720/FullyFeatured_STM32_LAN8720) **New**
393400

401+
#### 6. For Portenta_H7 using Murata WiFi
402+
403+
1. [FullyFeatured_PortentaH7_WiFi](examples/PortentaH7_WiFi/FullyFeatured_PortentaH7_WiFi) **New**
404+
405+
#### 7. For Portenta_H7 using built-in Ethernet
406+
407+
1. [FullyFeatured_PortentaH7_Ethernet](examples/PortentaH7_Ethernet/FullyFeatured_PortentaH7_Ethernet) **New**
408+
394409
---
395410
---
396411

@@ -418,7 +433,7 @@ This is terminal debug output when running [FullyFeatured_ESP8266](examples/ESP8
418433

419434
```
420435
Starting FullyFeature_ESP8266 on ESP8266_NODEMCU_ESP12E
421-
AsyncMQTT_Generic v1.2.1 for ESP8266
436+
AsyncMQTT_Generic v1.3.0 for ESP8266
422437
Connecting to Wi-Fi...
423438
Connected to Wi-Fi. IP address: 192.168.2.82
424439
Connecting to MQTT...
@@ -480,7 +495,7 @@ This is terminal debug output when running [FullyFeatured_ESP32](examples/ESP32/
480495

481496
```
482497
Starting FullyFeature_ESP32 on ESP32_DEV
483-
AsyncMQTT_Generic v1.2.1 for ESP32 core v2.0.0+
498+
AsyncMQTT_Generic v1.3.0 for ESP32 core v2.0.0+
484499
Connecting to Wi-Fi...
485500
WiFi ready
486501
WiFi STA starting
@@ -546,7 +561,7 @@ This is terminal debug output when running [FullyFeaturedSSL_ESP32](examples/ESP
546561

547562
```
548563
Starting FullyFeatureSSL_ESP32 on ESP32_DEV
549-
AsyncMQTT_Generic v1.2.1 for ESP32 core v2.0.0+
564+
AsyncMQTT_Generic v1.3.0 for ESP32 core v2.0.0+
550565
Connecting to Wi-Fi...
551566
WiFi ready
552567
WiFi STA starting
@@ -613,7 +628,7 @@ This is terminal debug output when running [FullyFeaturedSSL_ESP32](examples/ESP
613628

614629
```
615630
Starting FullyFeatureSSL_ESP32 on ESP32_DEV
616-
AsyncMQTT_Generic v1.2.1 for ESP32 core v2.0.0+
631+
AsyncMQTT_Generic v1.3.0 for ESP32 core v2.0.0+
617632
Connecting to Wi-Fi...
618633
WiFi ready
619634
WiFi STA starting
@@ -784,7 +799,7 @@ This is terminal debug output when running [FullyFeaturedSSL_WT32_ETH01](example
784799
```
785800
Starting FullyFeatureSSL_WT32_ETH01 on WT32-ETH01 with ETH_PHY_LAN8720
786801
WebServer_WT32_ETH01 v1.4.1 for core v2.0.0+
787-
AsyncMQTT_Generic v1.2.1 for ESP32 core v2.0.0+
802+
AsyncMQTT_Generic v1.3.0 for ESP32 core v2.0.0+
788803
ETH starting
789804
ETH connected
790805
ETH got IP
@@ -841,7 +856,7 @@ This is terminal debug output when running [FullyFeature_STM32](examples/STM32/F
841856

842857
```
843858
Starting FullyFeature_STM32 on NUCLEO_F767ZI
844-
AsyncMQTT_Generic v1.2.1 for STM32
859+
AsyncMQTT_Generic v1.3.0 for STM32
845860
Connected to network. IP = 192.168.2.118
846861
Connecting to MQTT...
847862
Connected to MQTT broker: broker.emqx.io, port: 1883
@@ -962,7 +977,7 @@ Publish acknowledged.
962977

963978
```
964979
Starting FullyFeature_STM32 on NUCLEO_F767ZI
965-
AsyncMQTT_Generic v1.2.1 for STM32
980+
AsyncMQTT_Generic v1.3.0 for STM32
966981
Connected to network. IP = 192.168.2.126
967982
Connecting to MQTT...
968983
[AMQTT] CONNECTING
@@ -1137,7 +1152,7 @@ This is terminal debug output when running [FullyFeatured_STM32_LAN8720](example
11371152

11381153
```
11391154
Starting FullyFeatured_STM32_LAN8720 on BLACK_F407VE
1140-
AsyncMQTT_Generic v1.2.1 for STM32
1155+
AsyncMQTT_Generic v1.3.0 for STM32
11411156
Connected to network. IP = 192.168.2.132
11421157
Connecting to MQTT...
11431158
Connected to MQTT broker: broker.emqx.io, port: 1883
@@ -1193,6 +1208,202 @@ Publish received.
11931208
Publish acknowledged.
11941209
packetId: 3
11951210
```
1211+
1212+
---
1213+
1214+
#### 9. FullyFeatured_PortentaH7_WiFi on PORTENTA_H7_M7
1215+
1216+
1217+
This is terminal debug output when running [FullyFeatured_PortentaH7_WiFi](examples/PortentaH7_WiFi/FullyFeatured_PortentaH7_WiFi) on **STM32H7 PORTENTA_H7_M7** using `Murata WiFi`, connecting to `broker.emqx.io` MQTT server.
1218+
1219+
1220+
```
1221+
Starting FullyFeatured_PortentaH7_WiFi on PORTENTA_H7_M7
1222+
AsyncMQTT_Generic v1.3.0 for Portenta_H7_M7
1223+
Connecting to SSID: HueNet1
1224+
Connected to SSID: HueNet1
1225+
Local IP Address: 192.168.2.134
1226+
Signal strength (RSSI):-37 dBm
1227+
Connecting to MQTT...
1228+
Connected to MQTT broker: broker.emqx.io, port: 1883
1229+
PubTopic: async-mqtt/Portenta_H7_WiFi_Pub
1230+
************************************************
1231+
Session present: 0
1232+
Subscribing at QoS 2, packetId: 1
1233+
Publishing at QoS 0
1234+
Publishing at QoS 1, packetId: 2
1235+
Publishing at QoS 2, packetId: 3
1236+
************************************************
1237+
Subscribe acknowledged.
1238+
packetId: 1
1239+
qos: 2
1240+
Publish received.
1241+
topic: async-mqtt/Portenta_H7_WiFi_Pub
1242+
message: Portenta_H7_WiFi Test 3
1243+
qos: 2
1244+
dup: 0
1245+
retain: 1
1246+
len: 23
1247+
index: 0
1248+
total: 23
1249+
Publish acknowledged.
1250+
packetId: 2
1251+
Publish received.
1252+
topic: async-mqtt/Portenta_H7_WiFi_Pub
1253+
message: Portenta_H7_WiFi Test1
1254+
qos: 0
1255+
dup: 0
1256+
retain: 0
1257+
len: 22
1258+
index: 0
1259+
total: 22
1260+
Publish received.
1261+
topic: async-mqtt/Portenta_H7_WiFi_Pub
1262+
message: Portenta_H7_WiFi Test 2
1263+
qos: 1
1264+
dup: 0
1265+
retain: 0
1266+
len: 23
1267+
index: 0
1268+
total: 23
1269+
Publish received.
1270+
topic: async-mqtt/Portenta_H7_WiFi_Pub
1271+
message: Portenta_H7_WiFi Test 3
1272+
qos: 2
1273+
dup: 0
1274+
retain: 0
1275+
len: 23
1276+
index: 0
1277+
total: 23
1278+
Publish acknowledged.
1279+
packetId: 3
1280+
```
1281+
1282+
---
1283+
1284+
#### 10. FullyFeatured_Portenta_H7_Ethernet on PORTENTA_H7_M7
1285+
1286+
This is terminal debug output when running [FullyFeatured_PortentaH7_Ethernet](examples/PortentaH7_WiFi/FullyFeatured_PortentaH7_Ethernet) on **STM32H7 PORTENTA_H7_M7**, using `built-in Ethernet`, connecting to `broker.emqx.io` MQTT server.
1287+
1288+
1289+
```
1290+
Starting FullyFeatured_PortentaH7_Ethernet on PORTENTA_H7_M7
1291+
AsyncMQTT_Generic v1.3.0 for Portenta_H7_M7
1292+
Connected to network. IP = 192.168.2.133
1293+
Connecting to MQTT...
1294+
Connected to MQTT broker: broker.emqx.io, port: 1883
1295+
PubTopic: async-mqtt/Portenta_H7_Ethernet_Pub
1296+
************************************************
1297+
Session present: 0
1298+
Subscribing at QoS 2, packetId: 1
1299+
Publishing at QoS 0
1300+
Publishing at QoS 1, packetId: 2
1301+
Publishing at QoS 2, packetId: 3
1302+
************************************************
1303+
Subscribe acknowledged.
1304+
packetId: 1
1305+
qos: 2
1306+
Publish received.
1307+
topic: async-mqtt/Portenta_H7_Ethernet_Pub
1308+
message: Portenta_H7_Ethernet Test3
1309+
qos: 2
1310+
dup: 0
1311+
retain: 1
1312+
len: 26
1313+
index: 0
1314+
total: 26
1315+
Publish acknowledged.
1316+
packetId: 2
1317+
Publish received.
1318+
topic: async-mqtt/Portenta_H7_Ethernet_Pub
1319+
message: Portenta_H7_Ethernet Test1
1320+
qos: 0
1321+
dup: 0
1322+
retain: 0
1323+
len: 26
1324+
index: 0
1325+
total: 26
1326+
Publish received.
1327+
topic: async-mqtt/Portenta_H7_Ethernet_Pub
1328+
message: Portenta_H7_Ethernet Test2
1329+
qos: 1
1330+
dup: 0
1331+
retain: 0
1332+
len: 26
1333+
index: 0
1334+
total: 26
1335+
Publish received.
1336+
topic: async-mqtt/Portenta_H7_Ethernet_Pub
1337+
message: Portenta_H7_Ethernet Test3
1338+
qos: 2
1339+
dup: 0
1340+
retain: 0
1341+
len: 26
1342+
index: 0
1343+
total: 26
1344+
Publish acknowledged.
1345+
packetId: 3
1346+
Ethernet disconnected <==== Test disconnect Ethernet very short time
1347+
Ethernet reconnected.
1348+
Ethernet disconnected <==== Test disconnect Ethernet long enough time to force MQTT disconnection
1349+
Ethernet reconnected.
1350+
[ATCP] setCloseError() to: Connection reset => -14
1351+
Disconnected from MQTT. <==== MQTT disconnected and reconnected
1352+
Connected to MQTT broker: broker.emqx.io, port: 1883
1353+
PubTopic: async-mqtt/Portenta_H7_Ethernet_Pub
1354+
************************************************
1355+
Session present: 0
1356+
Subscribing at QoS 2, packetId: 4
1357+
Publishing at QoS 0
1358+
Publishing at QoS 1, packetId: 5
1359+
Publishing at QoS 2, packetId: 6
1360+
************************************************
1361+
Subscribe acknowledged.
1362+
packetId: 4
1363+
qos: 2
1364+
Publish received.
1365+
topic: async-mqtt/Portenta_H7_Ethernet_Pub
1366+
message: Portenta_H7_Ethernet Test3
1367+
qos: 2
1368+
dup: 0
1369+
retain: 1
1370+
len: 26
1371+
index: 0
1372+
total: 26
1373+
Publish acknowledged.
1374+
packetId: 5
1375+
Publish received.
1376+
topic: async-mqtt/Portenta_H7_Ethernet_Pub
1377+
message: Portenta_H7_Ethernet Test1
1378+
qos: 0
1379+
dup: 0
1380+
retain: 0
1381+
len: 26
1382+
index: 0
1383+
total: 26
1384+
Publish received.
1385+
topic: async-mqtt/Portenta_H7_Ethernet_Pub
1386+
message: Portenta_H7_Ethernet Test2
1387+
qos: 1
1388+
dup: 0
1389+
retain: 0
1390+
len: 26
1391+
index: 0
1392+
total: 26
1393+
Publish received.
1394+
topic: async-mqtt/Portenta_H7_Ethernet_Pub
1395+
message: Portenta_H7_Ethernet Test3
1396+
qos: 2
1397+
dup: 0
1398+
retain: 0
1399+
len: 26
1400+
index: 0
1401+
total: 26
1402+
Publish acknowledged.
1403+
packetId: 6
1404+
```
1405+
1406+
11961407
---
11971408
---
11981409

@@ -1229,9 +1440,8 @@ Submit issues to: [AsyncMQTT_Generic issues](https://github.com/khoih-prog/Async
12291440

12301441
### TO DO
12311442

1232-
1. Add support to **Portenta_H7**, using either `Murata WiFi` or `Vision-shield Ethernet`
1233-
2. Support ESP8266 using SSL/TLS
1234-
3. Bug fixing.
1443+
1. Support ESP8266, STM32, Portenta_H7 using SSL/TLS
1444+
2. Bug fixing.
12351445

12361446
---
12371447

@@ -1242,7 +1452,7 @@ Submit issues to: [AsyncMQTT_Generic issues](https://github.com/khoih-prog/Async
12421452
3. Add support to **WT32_ETH01 (SSL and non-SSL)**
12431453
4. Add support to **Ethernet LAN8742A (non-SSL)**, using [`STM32Ethernet library`](https://github.com/stm32duino/STM32Ethernet) and [`STM32duino_LwIP library`](https://github.com/stm32duino/LwIP).
12441454
5. Add support to many **STM32F4 and STM32F7 (without TLS/SSL)** using `LAN8720` Ethernet, such as F407xx, NUCLEO_F429ZI, DISCO_F746NG, NUCLEO_F746ZG, NUCLEO_F756ZG, etc.
1245-
1455+
6. Add support to **Portenta_H7**, using either `Murata WiFi` or `Vision-shield Ethernet`
12461456

12471457
---
12481458
---

changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
## Table of Contents
1212

1313
* [Changelog](#changelog)
14+
* [Releases v1.3.0](#releases-v130)
1415
* [Releases v1.2.1](#releases-v121)
1516
* [Releases v1.2.0](#releases-v120)
1617
* [Releases v1.1.0](#releases-v110)
@@ -22,6 +23,11 @@
2223

2324
## Changelog
2425

26+
### Releases v1.3.0
27+
28+
1. Add support to **Portenta_H7**, using either `Murata WiFi` or `Vision-shield Ethernet`
29+
2. Add examples for `Portenta_H7_Ethernet` and `Portenta_H7_WiFi`
30+
2531
### Releases v1.2.1
2632

2733
1. Add support to many **STM32F4 and STM32F7 (without TLS/SSL)** using `LAN8720` Ethernet, such as F407xx, NUCLEO_F429ZI, DISCO_F746NG, NUCLEO_F746ZG, NUCLEO_F756ZG, etc.

keywords.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,9 @@ USING_CORE_ESP32_CORE_V200_PLUS LITERAL1
6565
MQTT_MIN_FREE_MEMORY LITERAL1
6666

6767
SHA1_SIZE LITERAL1
68+
69+
ASYNC_MQTT_USING_STM32 LITERAL1
70+
ASYNC_MQTT_USING_PORTENTA_H7 LITERAL1
71+
72+
USE_ETHERNET_PORTENTA_H7 LITERAL1
73+
USE_WIFI_PORTENTA_H7 LITERAL1

library.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "AsyncMQTT_Generic",
3-
"version": "1.2.1",
3+
"version": "1.3.0",
44
"keywords": "communication, iot, home, automation, async, async-tcp, async-tcp-ssl, async-mqtt, mqtt, async-mqtt-client, esp8266, esp32, stm32, portenta-h7, wt32-eth01, tls",
5-
"description": "Arduino Library for ESP8266, ESP32, Portenta_H7 and STM32 asynchronous MQTT client implementation. This library, ported to support ESP32, WT32_ETH01, ESP8266, Portenta_H7 (Ethernet or WiFi) and STM32 (LAN8742A Ethernet), is currently supporting ESP32, WT32_ETH01 (SSL and non-SSL), ESP8266 (non-SSL), STM32 using LAN8742A or LAN8720 (non-SSL). Support for Portenta_H7 will be added",
5+
"description": "Arduino Library for ESP8266, ESP32, Portenta_H7 and STM32 asynchronous MQTT client implementation. This library, ported to support ESP32, WT32_ETH01, ESP8266, Portenta_H7 (Ethernet or WiFi) and STM32 (LAN8742A Ethernet), is currently supporting ESP32, WT32_ETH01 (SSL and non-SSL), ESP8266 (non-SSL), STM32 using LAN8742A or LAN8720 (non-SSL), Portenta_H7 Ethernet or Murata WiFi (non-SSL)",
66
"authors":
77
[
88
{
@@ -41,6 +41,12 @@
4141
"version": ">=1.2.0",
4242
"platforms": "espressif32"
4343
},
44+
{
45+
"owner": "khoih-prog",
46+
"name": "Portenta_H7_AsyncTCP",
47+
"version": ">=1.3.0",
48+
"platforms": "ststm32"
49+
},
4450
{
4551
"owner": "khoih-prog",
4652
"name": "WebServer_WT32_ETH01",

0 commit comments

Comments
 (0)