mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
20 lines
663 B
C
20 lines
663 B
C
// =================================================================================================
|
|
// eModbus: Copyright 2024 by Michael Harwerth, Bert Melis and the contributors to eModbus
|
|
// MIT license - see license.md for details
|
|
// =================================================================================================
|
|
#ifndef _MODBUS_SERVER_ETH_H
|
|
#define _MODBUS_SERVER_ETH_H
|
|
#include "options.h"
|
|
#if HAS_ETHERNET == 1
|
|
#include <ETH.h>
|
|
#include <SPI.h>
|
|
|
|
#undef SERVER_END
|
|
#define SERVER_END // NIL for Ethernet
|
|
|
|
#include "ModbusServerTCPtemp.h"
|
|
using ModbusServerEthernet = ModbusServerTCP<WiFiServer, WiFiClient>;
|
|
#endif
|
|
|
|
#endif
|