Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions libraries/WiFiS3/src/WiFiClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@
#include "FifoBuffer.h"
#include <memory>

#define RX_BUFFER_DIM 1024

class WiFiClient : public Client {

public:
Expand Down Expand Up @@ -74,6 +72,7 @@ class WiFiClient : public Client {
int _sock;
int _connectionTimeout = 0;
void getSocket();
static constexpr uint32_t RX_BUFFER_DIM = 1024;
std::shared_ptr<FifoBuffer<uint8_t,RX_BUFFER_DIM>> rx_buffer;
int _read();
void read_if_needed(size_t s);
Expand Down
3 changes: 1 addition & 2 deletions libraries/WiFiS3/src/WiFiUdp.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,10 @@
#include "Modem.h"
#include "FifoBuffer.h"

#define RX_BUFFER_DIM 1461

class WiFiUDP : public UDP {
private:
int _sock;
static constexpr uint32_t RX_BUFFER_DIM = 1461;
FifoBuffer<uint8_t,RX_BUFFER_DIM> rx_buffer;

protected:
Expand Down