Skip to content

Commit 8c66112

Browse files
authored
Merge pull request #72 from manchoz/h7_increase_buffer_size
Increase buffer size for more capable boards
2 parents 19fcfd7 + b9b0d2f commit 8c66112

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/BearSSLClient.h

+14
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,18 @@
2525
#ifndef _BEAR_SSL_CLIENT_H_
2626
#define _BEAR_SSL_CLIENT_H_
2727

28+
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_OPTA) || defined(ARDUINO_GIGA)
29+
30+
#ifndef BEAR_SSL_CLIENT_OBUF_SIZE
31+
#define BEAR_SSL_CLIENT_OBUF_SIZE 2048
32+
#endif
33+
34+
#ifndef BEAR_SSL_CLIENT_IBUF_SIZE
35+
#define BEAR_SSL_CLIENT_IBUF_SIZE 32768
36+
#endif
37+
38+
#else
39+
2840
#ifndef BEAR_SSL_CLIENT_OBUF_SIZE
2941
#define BEAR_SSL_CLIENT_OBUF_SIZE 512 + 85
3042
#endif
@@ -33,6 +45,8 @@
3345
#define BEAR_SSL_CLIENT_IBUF_SIZE 8192 + 85 + 325 - BEAR_SSL_CLIENT_OBUF_SIZE
3446
#endif
3547

48+
#endif
49+
3650
#ifndef BEAR_SSL_CLIENT_CHAIN_SIZE
3751
#define BEAR_SSL_CLIENT_CHAIN_SIZE 3
3852
#endif

0 commit comments

Comments
 (0)