2021-01-01 12:44:04 +00:00
|
|
|
/*
|
|
|
|
tasmota_compat.h - ESP32 support for Tasmota
|
|
|
|
|
|
|
|
Copyright (C) 2021 Jörg Schüler-Maroldt and Theo Arends
|
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2020-04-10 17:24:08 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#ifdef ESP32
|
|
|
|
#include <esp8266toEsp32.h>
|
|
|
|
// Modul
|
|
|
|
#undef MODULE
|
|
|
|
#define MODULE WEMOS // [Module] Select default model
|
2020-04-13 16:45:06 +01:00
|
|
|
#endif // ESP32
|
2020-04-10 17:24:08 +01:00
|
|
|
|
|
|
|
#ifdef ESP8266
|
|
|
|
// ESP8266
|
|
|
|
//
|
|
|
|
// UDP
|
|
|
|
#define PortUdp_write(p,n) PortUdp.write(p, n)
|
|
|
|
//
|
|
|
|
// Serial minimal type to hold the config
|
|
|
|
#define SerConfu8 uint8_t
|
2020-04-13 16:45:06 +01:00
|
|
|
#endif // ESP8266
|