Skip to content

Commit de8c8e7

Browse files
committed
Update ESPAsyncTCP to 75c2513c57
- include me-no-dev/ESPAsyncTCP#115 reworked error handling multiple SyncClient fixes handle low-mem lwip builds by using correct TCP_MSS value for internal buffers - revert eb504e5 and 51703f6 - use unique_ptr for idb_client - check if idb support builds with 2.3.0 and current git
1 parent deb4657 commit de8c8e7

File tree

4 files changed

+19
-51
lines changed

4 files changed

+19
-51
lines changed

code/espurna/config/hardware.h

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3936,13 +3936,13 @@
39363936
#define MICS2710_SUPPORT 1
39373937
#define MICS5525_SUPPORT 1
39383938

3939-
// MAX6675 14 11 10
3940-
#ifndef MAX6675_SUPPORT
3941-
#define MAX6675_SUPPORT 1
3942-
#endif
3943-
#define MAX6675_CS_PIN 14
3944-
#define MAX6675_SO_PIN 11
3945-
#define MAX6675_SCK_PIN 10
3939+
// MAX6675 14 11 10
3940+
#define MAX6675_SUPPORT 1
3941+
#define MAX6675_CS_PIN 14
3942+
#define MAX6675_SO_PIN 11
3943+
#define MAX6675_SCK_PIN 10
3944+
3945+
#define INFLUXDB_SUPPORT 1
39463946

39473947
#elif defined(TRAVIS02)
39483948

@@ -4054,10 +4054,16 @@
40544054
#define PULSEMETER_SUPPORT 1
40554055

40564056
// Test non-default modules
4057+
#define MDNS_CLIENT_SUPPORT 1
4058+
#define NOFUSS_SUPPORT 1
4059+
#define UART_MQTT_SUPPORT 1
4060+
#define INFLUXDB_SUPPORT 1
4061+
#define IR_SUPPORT 1
4062+
#define RF_SUPPORT 1
4063+
#define OTA_MQTT_SUPPORT 1
40574064
#define LLMNR_SUPPORT 1
40584065
#define NETBIOS_SUPPORT 1
40594066
#define SSDP_SUPPORT 1
4060-
#define RF_SUPPORT 1
40614067

40624068
#else
40634069

code/espurna/influxdb.ino

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@ Copyright (C) 2017-2019 by Xose Pérez <xose dot perez at gmail dot com>
88

99
#if INFLUXDB_SUPPORT
1010

11-
#include "ESPAsyncTCP.h"
12-
13-
#include "libs/SyncClientWrap.h"
11+
#include <ESPAsyncTCP.h>
12+
#include <SyncClient.h>
1413

1514
bool _idb_enabled = false;
16-
SyncClientWrap * _idb_client;
15+
std::unique_ptr<SyncClient> _idb_client = nullptr;
1716

1817
// -----------------------------------------------------------------------------
1918

@@ -116,7 +115,7 @@ bool idbEnabled() {
116115

117116
void idbSetup() {
118117

119-
_idb_client = new SyncClientWrap();
118+
_idb_client = std::make_unique<SyncClient>();
120119

121120
_idbConfigure();
122121

code/espurna/libs/SyncClientWrap.h

Lines changed: 0 additions & 37 deletions
This file was deleted.

code/platformio.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ lib_deps =
106106
https://github.com/xoseperez/eeprom_rotate#0.9.2
107107
Embedis
108108
https://github.com/plerup/espsoftwareserial#3.4.1
109-
https://github.com/me-no-dev/ESPAsyncTCP#7e9ed22
109+
https://github.com/me-no-dev/ESPAsyncTCP#75c2513c
110110
https://github.com/me-no-dev/ESPAsyncWebServer#b0c6144
111111
https://bitbucket.org/xoseperez/fauxmoesp.git#3.1.0
112112
https://github.com/xoseperez/hlw8012.git#1.1.0

0 commit comments

Comments
 (0)