mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralgw.git
synced 2025-11-03 20:27:45 +00:00
Including CN for bad devices so we may block them in the future.
This commit is contained in:
@@ -378,7 +378,7 @@ namespace OpenWifi {
|
||||
|
||||
case uCentralProtocol::ET_STATE: {
|
||||
if(!Connected_) {
|
||||
Logger_.debug(Poco::format("INVALID-PROTOCOL(%s): Device %s is not following protocol", CId_, SerialNumber_));
|
||||
Logger_.debug(Poco::format("INVALID-PROTOCOL(%s): Device '%s' is not following protocol", CId_, CN_));
|
||||
return;
|
||||
}
|
||||
if (ParamsObj->has(uCentralProtocol::UUID) && ParamsObj->has(uCentralProtocol::STATE)) {
|
||||
@@ -421,7 +421,7 @@ namespace OpenWifi {
|
||||
|
||||
case uCentralProtocol::ET_HEALTHCHECK: {
|
||||
if(!Connected_) {
|
||||
Logger_.debug(Poco::format("INVALID-PROTOCOL(%s): Device %s is not following protocol", CId_, SerialNumber_));
|
||||
Logger_.debug(Poco::format("INVALID-PROTOCOL(%s): Device '%s' is not following protocol", CId_, CN_));
|
||||
return;
|
||||
}
|
||||
if (ParamsObj->has(uCentralProtocol::UUID) && ParamsObj->has(uCentralProtocol::SANITY) && ParamsObj->has(uCentralProtocol::DATA)) {
|
||||
@@ -476,7 +476,7 @@ namespace OpenWifi {
|
||||
|
||||
case uCentralProtocol::ET_LOG: {
|
||||
if(!Connected_) {
|
||||
Logger_.debug(Poco::format("INVALID-PROTOCOL(%s): Device %s is not following protocol", CId_, SerialNumber_));
|
||||
Logger_.debug(Poco::format("INVALID-PROTOCOL(%s): Device '%s' is not following protocol", CId_, CN_));
|
||||
return;
|
||||
}
|
||||
if (ParamsObj->has(uCentralProtocol::LOG) && ParamsObj->has(uCentralProtocol::SEVERITY)) {
|
||||
@@ -546,7 +546,7 @@ namespace OpenWifi {
|
||||
|
||||
case uCentralProtocol::ET_CFGPENDING: {
|
||||
if(!Connected_) {
|
||||
Logger_.debug(Poco::format("INVALID-PROTOCOL(%s): Device %s is not following protocol", CId_, SerialNumber_));
|
||||
Logger_.debug(Poco::format("INVALID-PROTOCOL(%s): Device '%s' is not following protocol", CId_, CN_));
|
||||
return;
|
||||
}
|
||||
if (ParamsObj->has(uCentralProtocol::UUID) && ParamsObj->has(uCentralProtocol::ACTIVE)) {
|
||||
@@ -585,7 +585,7 @@ namespace OpenWifi {
|
||||
|
||||
case uCentralProtocol::ET_DEVICEUPDATE: {
|
||||
if(!Connected_) {
|
||||
Logger_.debug(Poco::format("INVALID-PROTOCOL(%s): Device %s is not following protocol", CId_, SerialNumber_));
|
||||
Logger_.debug(Poco::format("INVALID-PROTOCOL(%s): Device '%s' is not following protocol", CId_, CN_));
|
||||
return;
|
||||
}
|
||||
if (ParamsObj->has("currentPassword")) {
|
||||
@@ -600,7 +600,7 @@ namespace OpenWifi {
|
||||
|
||||
case uCentralProtocol::ET_TELEMETRY: {
|
||||
if(!Connected_) {
|
||||
Logger_.debug(Poco::format("INVALID-PROTOCOL(%s): Device %s is not following protocol", CId_, SerialNumber_));
|
||||
Logger_.debug(Poco::format("INVALID-PROTOCOL(%s): Device '%s' is not following protocol", CId_, CN_));
|
||||
return;
|
||||
}
|
||||
if(ParamsObj->has("data")) {
|
||||
|
||||
Reference in New Issue
Block a user