NODE_DEBUG("enduser_setup_http_start failed. Couldn't create connection, already listening for that connection.\n");
enduser_setup_http_free();
return;
ENDUSER_SETUP_ERROR("enduser_setup_http_start failed. Couldn't create connection, already listening for that connection.",ENDUSER_SETUP_ERR_SOCKET_ALREADY_OPEN,ENDUSER_SETUP_ERR_FATAL);
}
elseif(err==ESPCONN_MEM)
{
NODE_DEBUG("enduser_setup_http_start failed. Couldn't create connection, out of memory.\n");
enduser_setup_http_free();
return;
ENDUSER_SETUP_ERROR("enduser_setup_http_start failed. Couldn't create connection, out of memory.",ENDUSER_SETUP_ERR_OUT_OF_MEMORY,ENDUSER_SETUP_ERR_FATAL);
}
elseif(err==ESPCONN_ARG)
{
NODE_DEBUG("enduser_setup_http_start failed. Can't find connection from espconn argument\n");
enduser_setup_http_free();
return;
ENDUSER_SETUP_ERROR("enduser_setup_http_start failed. Can't find connection from espconn argument",ENDUSER_SETUP_ERR_CONNECTION_NOT_FOUND,ENDUSER_SETUP_ERR_FATAL);
NODE_DEBUG("enduser_setup_http_start failed. Unable to set TCP timeout.\n");
enduser_setup_http_free();
return;
ENDUSER_SETUP_ERROR("enduser_setup_http_start failed. Unable to set TCP timeout.",ENDUSER_SETUP_ERR_CONNECTION_NOT_FOUND,ENDUSER_SETUP_ERR_NONFATAL|ENDUSER_SETUP_ERR_NO_RETURN);
NODE_DEBUG("enduser_setup_http_start failed. Unable to allocate memory for HTTP payload.\n");
enduser_setup_http_free();
return;
ENDUSER_SETUP_ERROR("enduser_setup_http_start failed. Unable to allocate memory for HTTP payload.",ENDUSER_SETUP_ERR_OUT_OF_MEMORY,ENDUSER_SETUP_ERR_FATAL);
NODE_DEBUG("enduser_setup_dns_recv_callback failed. Unable to get interface IP.\n");
return;
ENDUSER_SETUP_ERROR_VOID("enduser_setup_dns_recv_callback failed. Unable to get interface IP.",ENDUSER_SETUP_ERR_UNKOWN_ERROR,ENDUSER_SETUP_ERR_FATAL);
NODE_DEBUG("enduser_setup_dns_recv_callback failed. Failed to allocate memory for send.\n");
return;
ENDUSER_SETUP_ERROR_VOID("enduser_setup_dns_recv_callback failed. Failed to allocate memory for send.",ENDUSER_SETUP_ERR_OUT_OF_MEMORY,ENDUSER_SETUP_ERR_FATAL);
NODE_DEBUG("enduser_setup_dns_start failed. Appears to already be started (espconn_dns_udp != NULL).\n");
return;
ENDUSER_SETUP_ERROR("enduser_setup_dns_start failed. Appears to already be started (espconn_dns_udp != NULL).",ENDUSER_SETUP_ERR_UNKOWN_ERROR,ENDUSER_SETUP_ERR_FATAL);
NODE_DEBUG("enduser_setup_dns_start failed. Couldn't create connection, already listening for that connection.\n");
enduser_setup_dns_free();
return;
ENDUSER_SETUP_ERROR("enduser_setup_dns_start failed. Couldn't create connection, already listening for that connection.",ENDUSER_SETUP_ERR_SOCKET_ALREADY_OPEN,ENDUSER_SETUP_ERR_FATAL);
}
elseif(err==ESPCONN_MEM)
{
NODE_DEBUG("enduser_setup_dns_start failed. Couldn't create connection, out of memory.\n");
enduser_setup_dns_free();
return;
ENDUSER_SETUP_ERROR("enduser_setup_dns_start failed. Couldn't create connection, out of memory.",ENDUSER_SETUP_ERR_OUT_OF_MEMORY,ENDUSER_SETUP_ERR_FATAL);