mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 02:36:35 +00:00
Fix TCP bridge compile error
This commit is contained in:
parent
f29312415e
commit
0d2432a15b
@ -35,7 +35,7 @@ WiFiServer *server_tcp = nullptr;
|
|||||||
WiFiClient client_tcp[TCP_BRIDGE_CONNECTIONS];
|
WiFiClient client_tcp[TCP_BRIDGE_CONNECTIONS];
|
||||||
uint8_t client_next = 0;
|
uint8_t client_next = 0;
|
||||||
uint8_t *tcp_buf = nullptr; // data transfer buffer
|
uint8_t *tcp_buf = nullptr; // data transfer buffer
|
||||||
IPAddress ip_filter = 0;
|
IPAddress ip_filter;
|
||||||
|
|
||||||
#include <TasmotaSerial.h>
|
#include <TasmotaSerial.h>
|
||||||
TasmotaSerial *TCPSerial = nullptr;
|
TasmotaSerial *TCPSerial = nullptr;
|
||||||
@ -62,7 +62,7 @@ void TCPLoop(void)
|
|||||||
// check for a new client connection
|
// check for a new client connection
|
||||||
if ((server_tcp) && (server_tcp->hasClient())) {
|
if ((server_tcp) && (server_tcp->hasClient())) {
|
||||||
WiFiClient new_client = server_tcp->available();
|
WiFiClient new_client = server_tcp->available();
|
||||||
|
|
||||||
AddLog(LOG_LEVEL_INFO, PSTR(D_LOG_TCP "Got connection from %s"), new_client.remoteIP().toString().c_str());
|
AddLog(LOG_LEVEL_INFO, PSTR(D_LOG_TCP "Got connection from %s"), new_client.remoteIP().toString().c_str());
|
||||||
// Check for IP filtering if it's enabled.
|
// Check for IP filtering if it's enabled.
|
||||||
if (ip_filter) {
|
if (ip_filter) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user