Alix & Sam's combined versions

Dependencies:   BMP280 ELEC350-Practicals-FZ429 TextLCD BME280 ntp-client

Initialization.hpp

Committer:
Alix955
Date:
2018-12-13
Revision:
11:42b0c567cc8c
Parent:
9:f5eae5211225

File content as of revision 11:42b0c567cc8c:

#ifndef __Initialization__
#define __Initialization__

#include "mbed.h"
#include "EthernetInterface.h"
#include "ntp-client/NTPClient.h"


#define IP        "10.0.0.10" 

#define NETMASK   "255.0.0.0" 

#define GATEWAY   "10.0.0.2" 


EthernetInterface eth; 

eth.set_network(IP, NETMASK, GATEWAY); 

eth.connect(); 
    
NTPClient ntp(&eth);



#endif