Skip to content

Commit

Permalink
Merge branch 'sprint/2401' into sprint/2401
Browse files Browse the repository at this point in the history
  • Loading branch information
karuna2git authored Feb 2, 2024
2 parents 779fe57 + cb3e72a commit 75531a0
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 7 deletions.
2 changes: 1 addition & 1 deletion NetworkManager/service/Network.conf.in
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ connectivity.add("interval", "@PLUGIN_NETWORKMANAGER_CONN_MONITOR_INTERVAL@")

stun = JSON()
stun.add("endpoint", "@PLUGIN_NETWORKMANAGER_STUN_ENDPOINT@")
stun.add("port", "19310")
stun.add("port", "@PLUGIN_NETWORKMANAGER_STUN_PORT@")
stun.add("interval", "30")

configuration = JSON()
Expand Down
3 changes: 1 addition & 2 deletions NetworkManager/service/Network.config
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@ map()
key(stun)
map()
kv(endpoint, ${PLUGIN_NETWORKMANAGER_STUN_ENDPOINT})
kv(port, 19310)
kv(port, PLUGIN_NETWORKMANAGER_STUN_PORT)
kv(interval, 30)
end()
kv(loglevel, 3)
end()
ans(configuration)

2 changes: 1 addition & 1 deletion NetworkManager/service/NetworkManager.conf.in
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ connectivity.add("interval", "@PLUGIN_NETWORKMANAGER_CONN_MONITOR_INTERVAL@")

stun = JSON()
stun.add("endpoint", "@PLUGIN_NETWORKMANAGER_STUN_ENDPOINT@")
stun.add("port", "19310")
stun.add("port", "@PLUGIN_NETWORKMANAGER_STUN_PORT@")
stun.add("interval", "30")

configuration = JSON()
Expand Down
2 changes: 1 addition & 1 deletion NetworkManager/service/NetworkManager.config
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ map()
key(stun)
map()
kv(endpoint, ${PLUGIN_NETWORKMANAGER_STUN_ENDPOINT})
kv(port, 19310)
kv(port, PLUGIN_NETWORKMANAGER_STUN_PORT)
kv(interval, 30)
end()
kv(loglevel, 3)
Expand Down
2 changes: 1 addition & 1 deletion NetworkManager/service/WiFiManager.conf.in
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ connectivity.add("interval", "@PLUGIN_NETWORKMANAGER_CONN_MONITOR_INTERVAL@")

stun = JSON()
stun.add("endpoint", "@PLUGIN_NETWORKMANAGER_STUN_ENDPOINT@")
stun.add("port", "19310")
stun.add("port", "@PLUGIN_NETWORKMANAGER_STUN_PORT@")
stun.add("interval", "30")

configuration = JSON()
Expand Down
2 changes: 1 addition & 1 deletion NetworkManager/service/WiFiManager.config
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ map()
key(stun)
map()
kv(endpoint, ${PLUGIN_NETWORKMANAGER_STUN_ENDPOINT})
kv(port, 19310)
kv(port, PLUGIN_NETWORKMANAGER_STUN_PORT)
kv(interval, 30)
end()
kv(loglevel, 3)
Expand Down
3 changes: 3 additions & 0 deletions SystemServices/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ 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.7.4] - 2023-01-04
### Fixed
- Fix for getPlatformConfiguration api returning empty deviceType

## [2.0.1] - 2024-01-02
### Security
Expand Down
4 changes: 4 additions & 0 deletions SystemServices/SystemServices.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1043,6 +1043,7 @@ namespace WPEFramework {

if (res.size() > 0) {
std::string model_number;
std::string device_type;
if (queryParams.empty()) {
retAPIStatus = true;

Expand Down Expand Up @@ -1070,6 +1071,9 @@ namespace WPEFramework {
else if (key == "model_number") {
model_number = value;
}
else if(key == "device_type") {
device_type = value;
}
}
}
#ifdef ENABLE_DEVICE_MANUFACTURER_INFO
Expand Down
8 changes: 8 additions & 0 deletions SystemServices/platformcaps/platformcapsdatarpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ string PlatformCapsData::GetModel() {
.Get(_T("model_number")).String();
}

#ifndef ENABLE_COMMUNITY_DEVICE_TYPE
string PlatformCapsData::GetDeviceType() {
auto hex = jsonRpc.invoke(_T("org.rdk.AuthService"),
_T("getDeviceInfo"), 10000)
Expand All @@ -58,6 +59,13 @@ string PlatformCapsData::GetDeviceType() {
std::regex_search(deviceInfo, m, std::regex("deviceType=(\\w+),"));
return (m.empty() ? string() : m[1]);
}
#else
string PlatformCapsData::GetDeviceType() {
return jsonRpc.invoke(_T("org.rdk.System"),
_T("getDeviceInfo"), 10000)
.Get(_T("device_type")).String();
}
#endif

string PlatformCapsData::GetHDRCapability() {
JsonArray hdrCaps = jsonRpc.invoke(_T("org.rdk.DisplaySettings"),
Expand Down

0 comments on commit 75531a0

Please sign in to comment.