Skip to content

Commit 73c5ae5

Browse files
Alan Chensandeepmistry
Alan Chen
authored andcommitted
#define BEAR_SSL_CLIENT_IOBUF_SIZE
1 parent 00a7649 commit 73c5ae5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/BearSSLClient.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
#ifndef _BEAR_SSL_CLIENT_H_
2626
#define _BEAR_SSL_CLIENT_H_
2727

28+
#ifndef BEAR_SSL_CLIENT_IOBUF_SIZE
29+
#define BEAR_SSL_CLIENT_IOBUF_SIZE 8192 + 85 + 325
30+
#endif
31+
2832
#include <Arduino.h>
2933
#include <Client.h>
3034

@@ -68,7 +72,7 @@ class BearSSLClient : public Client {
6872

6973
br_ssl_client_context _sc;
7074
br_x509_minimal_context _xc;
71-
unsigned char _iobuf[8192 + 85 + 325];
75+
unsigned char _iobuf[BEAR_SSL_CLIENT_IOBUF_SIZE];
7276
br_sslio_context _ioc;
7377
};
7478

0 commit comments

Comments
 (0)