I finish buying a RCM4400W and i want connect it to router 2wire using DHCP, only i want that this connecting to my home network, i tried with this code:
#class auto
#define TCPCONFIG 5
#define _WIFI_MODE WIFICONF_INFRASTRUCT
#define _WIFI_SSID "HOME_LAN"
#define _WIFI_WEP_FLAG WIFICONF_WEP_ENABLE
#define _WIFI_AUTH_MODE WIFICONF_AUTH_OPEN_SYS
#define _WIFI_KEY0 0x57, 0x57, 0x16, 0x22, 0x87
#define _WIFI_KEY1 0x57, 0x57, 0x16, 0x22, 0x87
#define _WIFI_KEY2 0x57, 0x57, 0x16, 0x22, 0x87
#define _WIFI_KEY3 0x57, 0x57, 0x16, 0x22, 0x87
#memmap xmem
#use "dcrtcp.lib"
main()
{
unsigned char c;
sock_init();
printf( "My IP address is %s
", inet_ntoa(buffer, gethostid()) );
while (1) {
tcp_tick(NULL);
if (kbhit()) {
c = getchar();
if (tolower(c) == 'q') {
printf("Exit
");
break;
}
}
}
printf("