Skip to content

Commit 3637dd5

Browse files
committed
rename _otaClient to _otaTLSClient
1 parent d896eae commit 3637dd5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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 */
@@ -183,7 +183,7 @@ int ArduinoIoTCloudTCP::begin(bool const enable_watchdog, String brokerAddress,
183183
}
184184
_brokerTLSClient.setEccSlot(static_cast<int>(SElementArduinoCloudSlot::Key), _cert.bytes(), _cert.length());
185185
#if OTA_ENABLED
186-
_otaClient.setEccSlot(static_cast<int>(SElementArduinoCloudSlot::Key), _cert.bytes(), _cert.length());
186+
_otaTLSClient.setEccSlot(static_cast<int>(SElementArduinoCloudSlot::Key), _cert.bytes(), _cert.length());
187187
#endif
188188
#endif
189189
#endif
@@ -213,7 +213,7 @@ int ArduinoIoTCloudTCP::begin(bool const enable_watchdog, String brokerAddress,
213213
_device.begin();
214214

215215
#if OTA_ENABLED && !defined(OFFLOADED_DOWNLOAD)
216-
_ota.setClient(&_otaClient);
216+
_ota.setClient(&_otaTLSClient);
217217
#endif // OTA_ENABLED && !defined(OFFLOADED_DOWNLOAD)
218218

219219
#if OTA_ENABLED && defined(OTA_BASIC_AUTH)

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)