/* The DN command is used to resolve a NI (Node Identifier) string to a physical address.  */
xtBoolean xBeeNodeConnect(unsigned char *pucBuf)
/* The DN command is used to resolve a NI (Node Identifier) string to a physical address.  */
xtBoolean xBeeNodeConnect(unsigned char *pucBuf)
{
	int i=1000;
	xUARTCharPut(XBEE_UART, 'a');
	xUARTCharPut(XBEE_UART, 't');
	xUARTCharPut(XBEE_UART, 'd');
	xUARTCharPut(XBEE_UART, 'n');
	xBeeUartSendBuf(pucBuf,20);
	xUARTCharPut(XBEE_UART, '\r');
	xSysCtlDelay(300000);
	while((!(BufferStrFind("OK", 2)!=-1))&& (i--));
	if (i<=0)
	{
		BufferClear();
		return xfalse;
	}
	else
	{
		BufferClear();
		return xtrue;
	}
}