-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpe32me162ir_pub.h
38 lines (30 loc) · 907 Bytes
/
pe32me162ir_pub.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef INCLUDED_PE32ME162IR_PUB_H
#define INCLUDED_PE32ME162IR_PUB_H
#include <Arduino.h> /* Serial, pinMode, INPUT, OUTPUT, ... */
/* Include files specific to the platform (ESP8266, Arduino or TEST) */
#if defined(ARDUINO_ARCH_ESP8266)
# include <SoftwareSerial.h>
# define HAVE_MQTT
# define HAVE_WIFI
#elif defined(ARDUINO_ARCH_AVR)
# include <CustomSoftwareSerial.h>
# define SoftwareSerial CustomSoftwareSerial
# define SWSERIAL_7E1 CSERIAL_7E1
#elif defined(TEST_BUILD)
# include <SoftwareSerial.h>
#else
# error Unsupported platform
#endif
/* Include files specific to Wifi/MQTT */
#ifdef HAVE_WIFI
# include <ESP8266WiFi.h>
# ifdef HAVE_MQTT
# include <ArduinoMqttClient.h>
# endif
#endif
/* Helper for PROGMEM/flash strings. */
#include "progmem.h" // possibly used in config.h
#include "WattGauge.h"
#include "config.h"
#include "arduino_secrets.h"
#endif //INCLUDED_PE32ME162IR_PUB_H