|
33 | 33 | #include <WiFiClientSecure.h> |
34 | 34 | #endif |
35 | 35 |
|
| 36 | +#ifdef BOARD_HAS_OFFLOADED_ECCX08 |
| 37 | +#include "tls/utility/ECCX08Cert.h" |
| 38 | +#include <WiFiSSLClient.h> |
| 39 | +#endif |
| 40 | + |
36 | 41 | #include <ArduinoMqttClient.h> |
37 | 42 |
|
38 | 43 | /****************************************************************************** |
@@ -60,7 +65,7 @@ class ArduinoIoTCloudTCP: public ArduinoIoTCloudClass |
60 | 65 | virtual int connected () override; |
61 | 66 | virtual void printDebugInfo() override; |
62 | 67 |
|
63 | | - #ifdef BOARD_HAS_ECCX08 |
| 68 | + #if defined(BOARD_HAS_ECCX08) || defined(BOARD_HAS_OFFLOADED_ECCX08) |
64 | 69 | int begin(ConnectionHandler & connection, String brokerAddress = DEFAULT_BROKER_ADDRESS_SECURE_AUTH, uint16_t brokerPort = DEFAULT_BROKER_PORT_SECURE_AUTH); |
65 | 70 | #else |
66 | 71 | int begin(ConnectionHandler & connection, String brokerAddress = DEFAULT_BROKER_ADDRESS_USER_PASS_AUTH, uint16_t brokerPort = DEFAULT_BROKER_PORT_USER_PASS_AUTH); |
@@ -98,9 +103,12 @@ class ArduinoIoTCloudTCP: public ArduinoIoTCloudClass |
98 | 103 | int _mqtt_data_len; |
99 | 104 | bool _mqtt_data_request_retransmit; |
100 | 105 |
|
101 | | - #ifdef BOARD_HAS_ECCX08 |
| 106 | + #if defined(BOARD_HAS_ECCX08) |
102 | 107 | ECCX08CertClass _eccx08_cert; |
103 | 108 | BearSSLClient _sslClient; |
| 109 | + #elif defined(BOARD_HAS_OFFLOADED_ECCX08) |
| 110 | + ECCX08CertClass _eccx08_cert; |
| 111 | + WiFiBearSSLClient _sslClient; |
104 | 112 | #elif defined(BOARD_ESP) |
105 | 113 | WiFiClientSecure _sslClient; |
106 | 114 | String _password; |
|
0 commit comments