This commit is contained in:
Wolfgang Hottgenroth 2020-11-11 20:03:44 +01:00
parent 121cef72e6
commit 673f2815d5
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F
6 changed files with 29 additions and 3 deletions

View File

@ -3,7 +3,10 @@
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <Print.h>
#include <IPAddress.h>
#include <Stream.h>
typedef uint32_t millis_t;
typedef bool boolean;

View File

@ -2,9 +2,15 @@
#include <stdint.h>
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;
}
}

View File

@ -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();
};

7
AAL/Print.cpp Normal file
View File

@ -0,0 +1,7 @@
#include <Arduino.h>
#include <Print.h>
Print::Print() {
}

9
AAL/Print.h Normal file
View File

@ -0,0 +1,9 @@
#ifndef _PRINT_H_
#define _PRINT_H_
class Print {
public:
Print();
};
#endif // _PRINT_H_

View File

@ -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 $^