diff --git a/AAL/Arduino.h b/AAL/Arduino.h index e12310c..065564c 100644 --- a/AAL/Arduino.h +++ b/AAL/Arduino.h @@ -3,7 +3,10 @@ #include #include - +#include +#include +#include +#include typedef uint32_t millis_t; typedef bool boolean; diff --git a/AAL/IPAddress.cpp b/AAL/IPAddress.cpp index 009c56f..f6dfc17 100644 --- a/AAL/IPAddress.cpp +++ b/AAL/IPAddress.cpp @@ -2,9 +2,15 @@ #include + +IPAddress::IPAddress() { + memset(_address, 0, sizeof(_address)); +} + IPAddress::IPAddress(uint8_t o1, uint8_t o2, uint8_t o3, uint8_t o4) { _address[0] = o1; _address[1] = o2; _address[2] = o3; _address[3] = o4; -} \ No newline at end of file +} + diff --git a/AAL/IPAddress.h b/AAL/IPAddress.h index 8e2cca9..cd07d23 100644 --- a/AAL/IPAddress.h +++ b/AAL/IPAddress.h @@ -9,6 +9,7 @@ class IPAddress { uint8_t *raw_address() { return _address; }; public: IPAddress(uint8_t o1, uint8_t o2, uint8_t o3, uint8_t o4); + IPAddress(); }; diff --git a/AAL/Print.cpp b/AAL/Print.cpp new file mode 100644 index 0000000..0c54fa9 --- /dev/null +++ b/AAL/Print.cpp @@ -0,0 +1,7 @@ +#include +#include + + +Print::Print() { + +} \ No newline at end of file diff --git a/AAL/Print.h b/AAL/Print.h new file mode 100644 index 0000000..49d7ca5 --- /dev/null +++ b/AAL/Print.h @@ -0,0 +1,9 @@ +#ifndef _PRINT_H_ +#define _PRINT_H_ + +class Print { + public: + Print(); +}; + +#endif // _PRINT_H_ \ No newline at end of file diff --git a/Makefile b/Makefile index ea9f144..8a55e93 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ CFLAGS+=-I../ioLibrary_Driver/Ethernet -Isrc -IAAL OBJDIR=build VPATH=src AAL -OBJS=$(addprefix $(OBJDIR)/,PubSubClient.o IPAddress.o Stream.o Arduino.o) +OBJS=$(addprefix $(OBJDIR)/,PubSubClient.o IPAddress.o Stream.o Arduino.o Print.o) all: $(OBJS) $(AR) rcs pubsub.a $^