Framework update

This commit is contained in:
stephb9959
2021-12-20 21:33:24 -08:00
parent ced05a23a3
commit b1cdccc6b0
14 changed files with 84 additions and 46 deletions

View File

@@ -174,4 +174,17 @@ namespace OpenWifi {
return R.ReturnObject(Answer);
}
inline bool NormalizeMac(std::string & Mac) {
Poco::replaceInPlace(Mac,":","");
Poco::replaceInPlace(Mac,"-","");
if(Mac.size()!=12)
return false;
for(const auto &i:Mac) {
if(!std::isxdigit(i))
return false;
}
Poco::toLowerInPlace(Mac);
return true;
}
}