New answers tagged

0

IPAddress str2IP(String str) { IPAddress ret( getIpBlock(0,str),getIpBlock(1,str),getIpBlock(2,str),getIpBlock(3,str) ); return ret; } int getIpBlock(int index, String str) { char separator = '.'; int found = 0; int strIndex[] = {0, -1}; int maxIndex = str.length()-1; for(int i=0; i<=maxIndex && found<=index; i+...


Top 50 recent answers are included