Including CN for bad devices so we may block them in the future.

This commit is contained in:
stephb9959
2021-10-14 11:29:12 -07:00
parent 7703955b0e
commit 6fa7165171
2 changed files with 7 additions and 7 deletions

View File

@@ -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")) {