    *******************************************/
   if(!sim808_check_with_cmd("AT+CDNSGIP=\"ardugps.hopto.org\"\r\n","OK\r\n",CMD)){  
     error = CDNSGIP_FAIL; 
+    setCurrentError(CDNSGIP_FAIL);
+  }else{
+    clearCurrentError(CDNSGIP_FAIL);
   }
   delay(50);
   return error;

boolean SendCIPSTART (Protocol ptl)
{
  //char bufferC[30];
  
  if(ptl == TCP) {
    if(!sim808_check_with_cmd("AT+CIPSTART=\"TCP\",\"ardugps.hopto.org\",6789\r\n","OK\r\n",CMD)){  

}

/**************************************************************************************
* InitGPRS(byte firstTime)
* This function initialize the GPRS during start/restart of arduino/sim808 or when
* during normal operation it lost connection signal with GPRS.
* param: firstTime = 1, when is called during setup()
*        firstTime = 0, when called inside the code 
* Return error code: see error definition 
***************************************************************************************/
int InitGPRS(enum initTime t){
 byte error = 0;  
 /**************************************
  *AT+CGREG?
