@@ -60,7 +60,7 @@ ArduinoIoTCloudTCP::ArduinoIoTCloudTCP()
60
60
, _password(" " )
61
61
#endif
62
62
#if defined(BOARD_HAS_SECURE_ELEMENT)
63
- , _writeOnConnect (false )
63
+ , _writeCertOnConnect (false )
64
64
#endif
65
65
, _mqttClient{nullptr }
66
66
, _messageTopicOut(" " )
@@ -114,7 +114,7 @@ int ArduinoIoTCloudTCP::begin(ConnectionHandler & connection, bool const enable_
114
114
DEBUG_ERROR (" ArduinoIoTCloudTCP::%s could not read device id." , __FUNCTION__);
115
115
return 0 ;
116
116
}
117
- if (!_writeOnConnect ) {
117
+ if (!_writeCertOnConnect ) {
118
118
/* No update pending read certificate stored in secure element */
119
119
if (!SElementArduinoCloudCertificate::read (_selement, _cert, SElementArduinoCloudSlot::CompressedCertificate))
120
120
{
@@ -289,12 +289,12 @@ ArduinoIoTCloudTCP::State ArduinoIoTCloudTCP::handle_ConnectMqttBroker()
289
289
290
290
#if defined(BOARD_HAS_SECURE_ELEMENT)
291
291
/* A device certificate update was pending */
292
- if (_writeOnConnect )
292
+ if (_writeCertOnConnect )
293
293
{
294
294
if (SElementArduinoCloudCertificate::write (_selement, _cert, SElementArduinoCloudSlot::CompressedCertificate))
295
295
{
296
296
DEBUG_INFO (" ArduinoIoTCloudTCP::%s device certificate update done." , __FUNCTION__);
297
- _writeOnConnect = false ;
297
+ _writeCertOnConnect = false ;
298
298
}
299
299
}
300
300
#endif
@@ -623,7 +623,7 @@ int ArduinoIoTCloudTCP::updateCertificate(String authorityKeyIdentifier, String
623
623
DEBUG_INFO (" ArduinoIoTCloudTCP::%s update done." , __FUNCTION__);
624
624
}
625
625
#else
626
- _writeOnConnect = true ;
626
+ _writeCertOnConnect = true ;
627
627
#endif
628
628
return 1 ;
629
629
}
0 commit comments