diff --git a/Network/CHANGELOG.md b/Network/CHANGELOG.md index 907cfe913a..20a2c9dc54 100644 --- a/Network/CHANGELOG.md +++ b/Network/CHANGELOG.md @@ -16,6 +16,11 @@ All notable changes to this RDK Service will be documented in this file. * For more details, refer to [versioning](https://github.com/rdkcentral/rdkservices#versioning) section under Main README. +## [1.3.11] - 2024-05-13 +### Added +- Added connectivity monitor in onInterfaceIPAddressChanged +- Removed connectivity monitor from InterfaceConnectionStatusChanged + ## [1.3.10] - 2024-04-17 ### Added - added retry logic for connectivity monitor diff --git a/Network/Network.cpp b/Network/Network.cpp index 91835c8e1a..47b8a28003 100644 --- a/Network/Network.cpp +++ b/Network/Network.cpp @@ -35,7 +35,7 @@ using namespace std; #define API_VERSION_NUMBER_MAJOR 1 #define API_VERSION_NUMBER_MINOR 3 -#define API_VERSION_NUMBER_PATCH 10 +#define API_VERSION_NUMBER_PATCH 11 /* Netsrvmgr Based Macros & Structures */ #define IARM_BUS_NM_SRV_MGR_NAME "NET_SRV_MGR" @@ -1461,19 +1461,6 @@ typedef struct _IARM_BUS_NetSrvMgr_Iface_EventData_t { m_defInterfaceCache = ""; sendNotify("onConnectionStatusChanged", params); - if(connected) - { - connectivityMonitor.doInitialConnectivityMonitoring(30); - } - else - { - if (!connectivityMonitor.isMonitorThreadRunning()) - { - /*run the thread again to notify no_internet state*/ - connectivityMonitor.doInitialConnectivityMonitoring(30); - } - connectivityMonitor.stopInitialConnectivityMonitoring(); - } } void Network::onInternetStatusChange(nsm_internetState InternetConnectionState) @@ -1521,6 +1508,19 @@ typedef struct _IARM_BUS_NetSrvMgr_Iface_EventData_t { } params["status"] = string (acquired ? "ACQUIRED" : "LOST"); sendNotify("onIPAddressStatusChanged", params); + if(acquired) + { + connectivityMonitor.doInitialConnectivityMonitoring(30); + } + else + { + if (!connectivityMonitor.isMonitorThreadRunning()) + { + /*run the thread again to notify no_internet state*/ + connectivityMonitor.doInitialConnectivityMonitoring(30); + } + connectivityMonitor.stopInitialConnectivityMonitoring(); + } connectivityMonitor.signalConnectivityMonitor(); }