From 68cde022cb353d9231893ebf63f19d47cdf75392 Mon Sep 17 00:00:00 2001 From: Khoi Hoang <57012152+khoih-prog@users.noreply.github.com> Date: Thu, 18 Aug 2022 18:51:17 -0400 Subject: [PATCH] v1.2.0 to sync with AmebaD core v3.1.3 ### Release v1.2.0 1. Update to sync with Ameba Arduino SDK v3.1.3 WiFi.status() bug fix. Check [Update README.md](https://github.com/khoih-prog/WiFiManager_RTL8720/pull/2) 2. Update examples 3. Update libraries' dependencies 4. Update `Packages' Patches` --- examples/RTL8720_WiFi/RTL8720_WiFi.ino | 3 --- examples/RTL8720_WiFi_MQTT/Credentials.h | 4 ++-- examples/RTL8720_WiFi_MQTT/RTL8720_WiFi_MQTT.ino | 5 +---- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/examples/RTL8720_WiFi/RTL8720_WiFi.ino b/examples/RTL8720_WiFi/RTL8720_WiFi.ino index 4ff8acb..63585a8 100644 --- a/examples/RTL8720_WiFi/RTL8720_WiFi.ino +++ b/examples/RTL8720_WiFi/RTL8720_WiFi.ino @@ -28,9 +28,6 @@ void heartBeatPrint() if (WiFi.status() == WL_CONNECTED) { Serial.print("H"); // H means connected to WiFi - // Bad bug or RTL8720 => if WiFi lost, WiFi.status() still is WL_CONNECTED and WiFi.RSSI() still OK. - // Similar bug in Portenta_H7 without workaround as in Portenta_H7, WiFi.RSSI() => 0 - //Serial.print(WiFi.RSSI()); } else Serial.print("F"); // F means not connected to WiFi diff --git a/examples/RTL8720_WiFi_MQTT/Credentials.h b/examples/RTL8720_WiFi_MQTT/Credentials.h index d9d9474..e428f01 100644 --- a/examples/RTL8720_WiFi_MQTT/Credentials.h +++ b/examples/RTL8720_WiFi_MQTT/Credentials.h @@ -63,13 +63,13 @@ bool LOAD_DEFAULT_CONFIG_DATA = false; WM_Configuration defaultConfig = { //char header[16], dummy, not used - "WIFI_GENERIC", + "RTL8720", // WiFi_Credentials WiFi_Creds [NUM_WIFI_CREDENTIALS]; // WiFi_Credentials.wifi_ssid and WiFi_Credentials.wifi_pw "SSID1", "password1", "SSID2", "password2", //char board_name [24]; - "SAMD-Control", + "RTL8720-Control", // terminate the list //int checkSum, dummy, not used 0 diff --git a/examples/RTL8720_WiFi_MQTT/RTL8720_WiFi_MQTT.ino b/examples/RTL8720_WiFi_MQTT/RTL8720_WiFi_MQTT.ino index 079bde5..fe43786 100644 --- a/examples/RTL8720_WiFi_MQTT/RTL8720_WiFi_MQTT.ino +++ b/examples/RTL8720_WiFi_MQTT/RTL8720_WiFi_MQTT.ino @@ -45,9 +45,6 @@ void heartBeatPrint() if (WiFi.status() == WL_CONNECTED) { Serial.print("H"); // H means connected to WiFi - // Bad bug or RTL8720 => if WiFi lost, WiFi.status() still is WL_CONNECTED and WiFi.RSSI() still OK. - // Similar bug in Portenta_H7 without workaround as in Portenta_H7, WiFi.RSSI() => 0 - //Serial.print(WiFi.RSSI()); } else Serial.print("F"); // F means not connected to WiFi @@ -326,7 +323,7 @@ void setup() // Set customized DHCP HostName WiFiManager->begin(HOST_NAME); - //Or use default Hostname "SAMD-WIFI-XXXXXX" + //Or use default Hostname "RTL8720-WIFI-XXXXXX" //WiFiManager->begin(); }