Skip to content

Commit 9144168

Browse files
committed
TCP: rename _otaClient to _otaTLSClient
1 parent 88bffe8 commit 9144168

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/ArduinoIoTCloudTCP.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ int ArduinoIoTCloudTCP::begin(ConnectionHandler & connection, bool const enableW
123123
#if !defined(BOARD_HAS_OFFLOADED_ECCX08)
124124
_brokerTLSClient.setEccSlot(static_cast<int>(SElementArduinoCloudSlot::Key), _cert.bytes(), _cert.length());
125125
#if OTA_ENABLED
126-
_otaClient.setEccSlot(static_cast<int>(SElementArduinoCloudSlot::Key), _cert.bytes(), _cert.length());
126+
_otaTLSClient.setEccSlot(static_cast<int>(SElementArduinoCloudSlot::Key), _cert.bytes(), _cert.length());
127127
#endif
128128
#endif
129129
_brokerPort = (brokerPort == DEFAULT_BROKER_PORT_AUTO) ? DEFAULT_BROKER_PORT_SECURE_AUTH : brokerPort;
@@ -266,7 +266,7 @@ int ArduinoIoTCloudTCP::begin(bool const enableWatchdog, String brokerAddress, u
266266
_device.begin();
267267

268268
#if OTA_ENABLED && !defined(OFFLOADED_DOWNLOAD)
269-
_ota.setClient(&_otaClient);
269+
_ota.setClient(&_otaTLSClient);
270270
#endif // OTA_ENABLED && !defined(OFFLOADED_DOWNLOAD)
271271

272272
#if OTA_ENABLED && defined(OTA_BASIC_AUTH)
@@ -320,7 +320,7 @@ ArduinoIoTCloudTCP::State ArduinoIoTCloudTCP::handle_Init()
320320

321321
#if OTA_ENABLED
322322
/* Setup OTA TLS client */
323-
_otaClient.begin(*_connection);
323+
_otaTLSClient.begin(*_connection);
324324
#endif
325325

326326
/* Setup TimeService */

src/ArduinoIoTCloudTCP.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ class ArduinoIoTCloudTCP: public ArduinoIoTCloudClass
168168
String _dataTopicIn;
169169

170170
#if OTA_ENABLED
171-
TLSClientOta _otaClient;
171+
TLSClientOta _otaTLSClient;
172172
ArduinoCloudOTA _ota;
173173
onOTARequestCallbackFunc _get_ota_confirmation;
174174
#endif /* OTA_ENABLED */

0 commit comments

Comments
 (0)