Skip to content

Commit 9bec493

Browse files
committed
rename _otaClient to _otaTLSClient
1 parent 60c653a commit 9bec493

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: src/ArduinoIoTCloudTCP.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ int ArduinoIoTCloudTCP::begin(ConnectionHandler & connection, bool const enable_
9191

9292
#if OTA_ENABLED
9393
/* Setup OTA TLS client */
94-
_otaClient.begin(connection);
94+
_otaTLSClient.begin(connection);
9595
#endif
9696

9797
/* Setup TimeService */
@@ -187,7 +187,7 @@ int ArduinoIoTCloudTCP::begin(bool const enable_watchdog, String brokerAddress,
187187
}
188188
_brokerTLSClient.setEccSlot(static_cast<int>(SElementArduinoCloudSlot::Key), _cert.bytes(), _cert.length());
189189
#if OTA_ENABLED
190-
_otaClient.setEccSlot(static_cast<int>(SElementArduinoCloudSlot::Key), _cert.bytes(), _cert.length());
190+
_otaTLSClient.setEccSlot(static_cast<int>(SElementArduinoCloudSlot::Key), _cert.bytes(), _cert.length());
191191
#endif
192192
#endif
193193
#endif
@@ -217,7 +217,7 @@ int ArduinoIoTCloudTCP::begin(bool const enable_watchdog, String brokerAddress,
217217
_device.begin();
218218

219219
#if OTA_ENABLED && !defined(OFFLOADED_DOWNLOAD)
220-
_ota.setClient(&_otaClient);
220+
_ota.setClient(&_otaTLSClient);
221221
#endif // OTA_ENABLED && !defined(OFFLOADED_DOWNLOAD)
222222

223223
#if OTA_ENABLED && defined(OTA_BASIC_AUTH)

Diff for: src/ArduinoIoTCloudTCP.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ class ArduinoIoTCloudTCP: public ArduinoIoTCloudClass
148148

149149

150150
#if OTA_ENABLED
151-
TLSClientOta _otaClient;
151+
TLSClientOta _otaTLSClient;
152152
ArduinoCloudOTA _ota;
153153
onOTARequestCallbackFunc _get_ota_confirmation;
154154
#endif /* OTA_ENABLED */

0 commit comments

Comments
 (0)