fixes
This commit is contained in:
parent
121cef72e6
commit
673f2815d5
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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
7
AAL/Print.cpp
Normal file
@ -0,0 +1,7 @@
|
||||
#include <Arduino.h>
|
||||
#include <Print.h>
|
||||
|
||||
|
||||
Print::Print() {
|
||||
|
||||
}
|
9
AAL/Print.h
Normal file
9
AAL/Print.h
Normal file
@ -0,0 +1,9 @@
|
||||
#ifndef _PRINT_H_
|
||||
#define _PRINT_H_
|
||||
|
||||
class Print {
|
||||
public:
|
||||
Print();
|
||||
};
|
||||
|
||||
#endif // _PRINT_H_
|
2
Makefile
2
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 $^
|
||||
|
Loading…
x
Reference in New Issue
Block a user