Hi,
i am working with mbed and i want to set static ip. how can i set static ip?
Thanks,
uint8_t my_ip[4] = {192, 168, 1, 144};
uint8_t my_nm[4] = {255, 255, 255, 0};
uint8_t my_gw[4] = {192, 168, 0, 1};
uint8_t my_dns[4] = {8, 8, 8, 8};
wifi.start(0);
wifi._netapp.dhcp((uint32_t *)&my_ip[0], (uint32_t *)&my_nm[0], (uint32_t *)&my_gw[0], (uint32_t *)&my_dns[0]);
wifi.restart(0);
Users browsing this forum: No registered users and 2 guests