mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 16:29:51 +03:00
json is always chunked
This commit is contained in:
@@ -2,8 +2,6 @@
|
||||
#define PsychicClient_h
|
||||
|
||||
#include "PsychicCore.h"
|
||||
#include "PsychicHttpServer.h"
|
||||
#include <lwip/sockets.h>
|
||||
|
||||
/*
|
||||
* PsychicClient :: Generic wrapper around the ESP-IDF socket
|
||||
@@ -12,7 +10,7 @@
|
||||
class PsychicClient {
|
||||
protected:
|
||||
httpd_handle_t _server;
|
||||
int _socket;
|
||||
int _socket;
|
||||
|
||||
public:
|
||||
PsychicClient(httpd_handle_t server, int socket);
|
||||
@@ -20,17 +18,15 @@ class PsychicClient {
|
||||
|
||||
//no idea if this is the right way to do it or not, but lets see.
|
||||
//pointer to our derived class (eg. PsychicWebSocketConnection)
|
||||
void * _friend;
|
||||
void *_friend;
|
||||
|
||||
bool isNew = false;
|
||||
|
||||
bool operator==(PsychicClient & rhs) const {
|
||||
return _socket == rhs.socket();
|
||||
}
|
||||
bool operator==(PsychicClient& rhs) const { return _socket == rhs.socket(); }
|
||||
|
||||
httpd_handle_t server();
|
||||
int socket();
|
||||
esp_err_t close();
|
||||
int socket();
|
||||
esp_err_t close();
|
||||
|
||||
IPAddress localIP();
|
||||
IPAddress remoteIP();
|
||||
|
||||
Reference in New Issue
Block a user