Ben Schueler / Mbed 2 deprecated UDPSocket_Node

Dependencies:   EthernetNetIf NTPClient_NetServices mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers system.h Source File

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;