Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EthernetNetIf NTPClient_NetServices mbed
system.h
00001 #include "mbed.h" 00002 #include "EthernetNetIf.h" 00003 #include "UDPSocket.h" 00004 #include "NTPClient.h" 00005 00006 Serial pc(USBTX, USBRX); 00007 EthernetNetIf eth; 00008 NTPClient ntp; 00009 UDPSocket udp; 00010 DigitalOut led(LED1); 00011 InterruptIn button(p5); 00012 Ticker AliveTicker; 00013 00014 struct tm *cTime; // Stucture that holds the current time 00015 00016 // Message to let the other know we are alive 00017 char strAlive[15]; 00018 00019 char mebed_list[16]; 00020 00021 char ButtonPressed = 0; 00022 char SendAlive = 0; 00023 char mbed_id = 0; 00024 char mbed_client = 0;
Generated on Thu Jul 14 2022 21:15:07 by
