dark-mode/microcontroller/Sources/tcp_client.c
/**
 * Initialize networking and run main program loop.
 */
Initialize networking and run main program loop.
Initialize networking and run main program loop .
void start_tcp_client() {
	sys_init();
	lwip_init();
	enetif_init();
	while (1) {
		sys_check_timeouts();
		(void) enet_poll_interface(&netif);
	}
	enet_ethernetif_shutdown(&netif);
}
void start_tcp_client ( ) { sys_init ( ) ; lwip_init ( ) ; enetif_init ( ) ; while ( 1 ) { sys_check_timeouts ( ) ; ( void ) enet_poll_interface ( & netif ) ; } enet_ethernetif_shutdown ( & netif ) ; }
Initialize networking and run main program loop.
Initialize networking and run main program loop .
/* init system architecture layer (initialization of timers) */ /* init lwIP single-threaded core: initialize the network stack */ /* init network (ethernet) interface */ /* main loop for driver update and timers */ /* handle timers */ /* poll ethernet packets and feed into network interface */ /* release the network interface */