NODE_DEBUG("enduser_setup_http_start failed. Couldn't create connection, already listening for that connection.\n");
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);
enduser_setup_http_free();
return;
}
}
elseif(err==ESPCONN_MEM)
elseif(err==ESPCONN_MEM)
{
{
NODE_DEBUG("enduser_setup_http_start failed. Couldn't create connection, out of memory.\n");
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);
enduser_setup_http_free();
return;
}
}
elseif(err==ESPCONN_ARG)
elseif(err==ESPCONN_ARG)
{
{
NODE_DEBUG("enduser_setup_http_start failed. Can't find connection from espconn argument\n");
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_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_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");
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");
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");
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_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);
enduser_setup_dns_free();
return;
}
}
elseif(err==ESPCONN_MEM)
elseif(err==ESPCONN_MEM)
{
{
NODE_DEBUG("enduser_setup_dns_start failed. Couldn't create connection, out of memory.\n");
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);