mirror of
				https://github.com/Telecominfraproject/wlan-cloud-owprov.git
				synced 2025-10-31 10:37:57 +00:00 
			
		
		
		
	Framework update
This commit is contained in:
		| @@ -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; | ||||
|     } | ||||
|  | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 stephb9959
					stephb9959