Some quick code to use UDP-only (no TCP) with mBed. Echos received packets and sends packets when a button is pressed
device.h
00001 #ifndef ETHNETIF_H 00002 #define ETHNETIF_H 00003 00004 #ifdef __cplusplus 00005 extern "C" { 00006 #endif 00007 00008 void device_poll(); 00009 err_t device_init(struct netif *netif); 00010 void device_address(char *mac); 00011 00012 00013 #ifdef __cplusplus 00014 }; 00015 #endif 00016 00017 #endif
Generated on Tue Jul 12 2022 19:17:23 by 1.7.2