You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DEBUG_WARNING("Encoded %d bytes for Command Message. Exceeds maximum payload size of %d bytes, and cannot be sent to cloud.", bytes_encoded, CBOR_LORA_PAYLOAD_MAX_SIZE);
435
435
} elseif (bytes_encoded > 0) {
436
-
DEBUG_DEBUG("ArduinoIoTCloudNotecard::%s encoded %d bytes for Command Message", __FUNCTION__, bytes_encoded);
436
+
DEBUG_DEBUG("Notecard::%s encoded %d bytes for Command Message", __FUNCTION__, bytes_encoded);
DEBUG_ERROR("ArduinoIoTCloudTCP::%s could not initialize secure element.", __FUNCTION__);
109
+
DEBUG_ERROR("TCP::%s could not initialize secure element.", __FUNCTION__);
110
110
#if defined(ARDUINO_UNOWIFIR4)
111
111
if (String(WiFi.firmwareVersion()) < String("0.4.1")) {
112
-
DEBUG_ERROR("ArduinoIoTCloudTCP::%s In order to read device certificate, WiFi firmware needs to be >= 0.4.1, current %s", __FUNCTION__, WiFi.firmwareVersion());
112
+
DEBUG_ERROR("TCP::%s In order to read device certificate, WiFi firmware needs to be >= 0.4.1, current %s", __FUNCTION__, WiFi.firmwareVersion());
113
113
}
114
114
#endif
115
115
return0;
116
116
}
117
117
if (!SElementArduinoCloudDeviceId::read(_selement, getDeviceId(), SElementArduinoCloudSlot::DeviceId))
118
118
{
119
-
DEBUG_ERROR("ArduinoIoTCloudTCP::%s could not read device id.", __FUNCTION__);
119
+
DEBUG_ERROR("TCP::%s could not read device id.", __FUNCTION__);
120
120
return0;
121
121
}
122
122
if (!_writeCertOnConnect) {
123
123
/* No update pending read certificate stored in secure element */
124
124
if (!SElementArduinoCloudCertificate::read(_selement, _cert, SElementArduinoCloudSlot::CompressedCertificate))
125
125
{
126
-
DEBUG_ERROR("ArduinoIoTCloudTCP::%s could not read device certificate.", __FUNCTION__);
126
+
DEBUG_ERROR("TCP::%s could not read device certificate.", __FUNCTION__);
127
127
return0;
128
128
}
129
129
}
@@ -184,14 +184,14 @@ int ArduinoIoTCloudTCP::begin(bool const enable_watchdog, String brokerAddress,
184
184
185
185
#ifdef BOARD_HAS_OFFLOADED_ECCX08
186
186
if (String(WiFi.firmwareVersion()) < String("1.4.4")) {
187
-
DEBUG_ERROR("ArduinoIoTCloudTCP::%s In order to connect to Arduino IoT Cloud, NINA firmware needs to be >= 1.4.4, current %s", __FUNCTION__, WiFi.firmwareVersion());
187
+
DEBUG_ERROR("TCP::%s In order to connect to Arduino IoT Cloud, NINA firmware needs to be >= 1.4.4, current %s", __FUNCTION__, WiFi.firmwareVersion());
188
188
return0;
189
189
}
190
190
#endif/* BOARD_HAS_OFFLOADED_ECCX08 */
191
191
192
192
#if defined(ARDUINO_UNOWIFIR4)
193
193
if (String(WiFi.firmwareVersion()) < String("0.2.0")) {
194
-
DEBUG_ERROR("ArduinoIoTCloudTCP::%s In order to connect to Arduino IoT Cloud, WiFi firmware needs to be >= 0.2.0, current %s", __FUNCTION__, WiFi.firmwareVersion());
194
+
DEBUG_ERROR("TCP::%s In order to connect to Arduino IoT Cloud, WiFi firmware needs to be >= 0.2.0, current %s", __FUNCTION__, WiFi.firmwareVersion());
DEBUG_VERBOSE("ArduinoIoTCloudTCP::%s connected to %s:%d", __FUNCTION__, _brokerAddress.c_str(), _brokerPort);
303
+
DEBUG_VERBOSE("TCP::%s connected to %s:%d", __FUNCTION__, _brokerAddress.c_str(), _brokerPort);
304
304
return State::Connected;
305
305
}
306
306
307
307
/* Can't connect to the broker. Wait: 2s -> 4s -> 8s -> 16s -> 32s -> 32s ... */
308
308
_connection_attempt.retry();
309
309
310
310
#if defined (BOARD_STM32H7) && defined(BOARD_HAS_ECCX08)
311
-
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());
311
+
DEBUG_ERROR("TCP::%s could not connect to %s:%d Mqtt error: %d TLS error: %d", __FUNCTION__, _brokerAddress.c_str(), _brokerPort, _mqttClient.connectError(), _brokerClient.errorCode());
312
312
#else
313
-
DEBUG_ERROR("ArduinoIoTCloudTCP::%s could not connect to %s:%d Error: %d", __FUNCTION__, _brokerAddress.c_str(), _brokerPort, _mqttClient.connectError());
313
+
DEBUG_ERROR("TCP::%s could not connect to %s:%d Error: %d", __FUNCTION__, _brokerAddress.c_str(), _brokerPort, _mqttClient.connectError());
314
314
#endif
315
-
DEBUG_VERBOSE("ArduinoIoTCloudTCP::%s %d next connection attempt in %d ms", __FUNCTION__, _connection_attempt.getRetryCount(), _connection_attempt.getWaitTime());
315
+
DEBUG_VERBOSE("TCP::%s %d next connection attempt in %d ms", __FUNCTION__, _connection_attempt.getRetryCount(), _connection_attempt.getWaitTime());
316
316
/* Go back to ConnectPhy and retry to get time from network (invalid time for SSL handshake?)*/
DEBUG_ERROR("ArduinoIoTCloudTCP::%s could not unsubscribe from %s", __FUNCTION__, _dataTopicIn.c_str());
555
+
DEBUG_ERROR("TCP::%s could not unsubscribe from %s", __FUNCTION__, _dataTopicIn.c_str());
556
556
return;
557
557
}
558
558
@@ -591,38 +591,38 @@ int ArduinoIoTCloudTCP::updateCertificate(String authorityKeyIdentifier, String
591
591
{
592
592
if (!_selement.begin())
593
593
{
594
-
DEBUG_ERROR("ArduinoIoTCloudTCP::%s could not initialize secure element.", __FUNCTION__);
594
+
DEBUG_ERROR("TCP::%s could not initialize secure element.", __FUNCTION__);
595
595
#if defined(ARDUINO_UNOWIFIR4)
596
596
if (String(WiFi.firmwareVersion()) < String("0.4.1")) {
597
-
DEBUG_ERROR("ArduinoIoTCloudTCP::%s In order to read device certificate, WiFi firmware needs to be >= 0.4.1, current %s", __FUNCTION__, WiFi.firmwareVersion());
597
+
DEBUG_ERROR("TCP::%s In order to read device certificate, WiFi firmware needs to be >= 0.4.1, current %s", __FUNCTION__, WiFi.firmwareVersion());
598
598
}
599
599
#endif
600
600
return0;
601
601
}
602
602
if (!SElementArduinoCloudDeviceId::read(_selement, getDeviceId(), SElementArduinoCloudSlot::DeviceId))
603
603
{
604
-
DEBUG_ERROR("ArduinoIoTCloudTCP::%s could not read device id.", __FUNCTION__);
604
+
DEBUG_ERROR("TCP::%s could not read device id.", __FUNCTION__);
605
605
return0;
606
606
}
607
607
/* read certificate stored in secure element to compare AUTHORITY_KEY_ID */
608
608
if (!SElementArduinoCloudCertificate::read(_selement, _cert, SElementArduinoCloudSlot::CompressedCertificate))
609
609
{
610
-
DEBUG_ERROR("ArduinoIoTCloudTCP::%s could not read device certificate.", __FUNCTION__);
610
+
DEBUG_ERROR("TCP::%s could not read device certificate.", __FUNCTION__);
611
611
return0;
612
612
}
613
613
/* check if we need to update 0 = equal <0 = error skip rebuild */
0 commit comments