Skip to content

Commit eea4bdf

Browse files
committed
Support Arduino >=3.x for custom network client
1 parent 6eee4c6 commit eea4bdf

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121
"type": "git",
2222
"url": "https://github.com/Links2004/arduinoWebSockets.git"
2323
},
24-
"version": "2.7.0"
24+
"version": "2.7.1"
2525
}

src/WebSocketsNetworkClientSecure.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ class WebSocketsNetworkClientSecure : public WebSocketsNetworkClient {
2424
operator bool() override;
2525

2626
void setCACert(const char * rootCA);
27+
#if ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(3, 0, 4)
28+
void setCACertBundle(const uint8_t * bundle, size_t bundle_size);
29+
#else
2730
void setCACertBundle(const uint8_t * bundle);
31+
#endif
2832
void setInsecure();
2933
bool verify(const char * fingerprint, const char * domain_name);
3034
};

0 commit comments

Comments
 (0)