Skip to content

Commit 88bffe8

Browse files
committed
TCP: rename _brokerClient to _brokerTLSClient
1 parent a3d976e commit 88bffe8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/ArduinoIoTCloudTCP.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ int ArduinoIoTCloudTCP::begin(ConnectionHandler & connection, bool const enableW
121121
}
122122
}
123123
#if !defined(BOARD_HAS_OFFLOADED_ECCX08)
124-
_brokerClient.setEccSlot(static_cast<int>(SElementArduinoCloudSlot::Key), _cert.bytes(), _cert.length());
124+
_brokerTLSClient.setEccSlot(static_cast<int>(SElementArduinoCloudSlot::Key), _cert.bytes(), _cert.length());
125125
#if OTA_ENABLED
126126
_otaClient.setEccSlot(static_cast<int>(SElementArduinoCloudSlot::Key), _cert.bytes(), _cert.length());
127127
#endif
@@ -245,7 +245,7 @@ int ArduinoIoTCloudTCP::begin(bool const enableWatchdog, String brokerAddress, u
245245

246246
_state = State::ConfigPhy;
247247

248-
_mqttClient.setClient(_brokerClient);
248+
_mqttClient.setClient(_brokerTLSClient);
249249

250250
#ifdef BOARD_HAS_SECRET_KEY
251251
if(_password.length())
@@ -316,7 +316,7 @@ ArduinoIoTCloudTCP::State ArduinoIoTCloudTCP::handle_Init()
316316
{
317317
/* Setup broker TLS client */
318318
/* Setup broker TLS client */
319-
_brokerClient.begin(*_connection, _authMode);
319+
_brokerTLSClient.begin(*_connection, _authMode);
320320

321321
#if OTA_ENABLED
322322
/* Setup OTA TLS client */
@@ -393,7 +393,7 @@ ArduinoIoTCloudTCP::State ArduinoIoTCloudTCP::handle_ConnectMqttBroker()
393393
_connection_attempt.retry();
394394

395395
#if defined(BOARD_HAS_ECCX08) && !defined(BOARD_HAS_OFFLOADED_ECCX08)
396-
DEBUG_ERROR("ArduinoIoTCloudTCP::%s could not connect to %s:%d Mqtt error: %d TLS error: %d", __FUNCTION__, _brokerAddress.c_str(), _brokerPort, _mqttClient.connectError(), _brokerClient.errorCode());
396+
DEBUG_ERROR("ArduinoIoTCloudTCP::%s could not connect to %s:%d Mqtt error: %d TLS error: %d", __FUNCTION__, _brokerAddress.c_str(), _brokerPort, _mqttClient.connectError(), _brokerTLSClient.errorCode());
397397
#else
398398
DEBUG_ERROR("ArduinoIoTCloudTCP::%s could not connect to %s:%d Error: %d", __FUNCTION__, _brokerAddress.c_str(), _brokerPort, _mqttClient.connectError());
399399
#endif

src/ArduinoIoTCloudTCP.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ class ArduinoIoTCloudTCP: public ArduinoIoTCloudClass
159159
bool _writeCertOnConnect;
160160
#endif
161161

162-
TLSClientMqtt _brokerClient;
162+
TLSClientMqtt _brokerTLSClient;
163163
MqttClient _mqttClient;
164164

165165
String _messageTopicOut;

0 commit comments

Comments
 (0)