/* Start a DHCP client, and wait for a lease to be acquired.  */
void app_dhcpv4_startup(void)
/* Start a DHCP client, and wait for a lease to be acquired.  */
void app_dhcpv4_startup(void)
{
	struct net_if *iface;
	net_mgmt_init_event_callback(&mgmt_cb, handler,
				     NET_EVENT_IPV4_ADDR_ADD);
	net_mgmt_add_event_callback(&mgmt_cb);
	iface = net_if_get_default();
	net_dhcpv4_start(iface);
	k_sem_take(&got_address, K_FOREVER);
}