Alix & Sam's combined versions
Dependencies: BMP280 ELEC350-Practicals-FZ429 TextLCD BME280 ntp-client
Diff: Initialization.hpp
- Revision:
- 9:f5eae5211225
diff -r 7d218affea71 -r f5eae5211225 Initialization.hpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Initialization.hpp Fri Dec 07 13:24:50 2018 +0000 @@ -0,0 +1,26 @@ +#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(ð); + + + +#endif \ No newline at end of file