@@ -330,7 +330,7 @@ ArduinoIoTCloudTCP::State ArduinoIoTCloudTCP::handle_Connected()
330
330
{
331
331
if (!_mqttClient.connected ())
332
332
{
333
- DBG_ERROR ( F ( " ArduinoIoTCloudTCP::%s MQTT client connection lost" ) , __FUNCTION__);
333
+ DEBUG_ERROR ( " ArduinoIoTCloudTCP::%s MQTT client connection lost" , __FUNCTION__);
334
334
335
335
/* Forcefully disconnect MQTT client and trigger a reconnection. */
336
336
_mqttClient.stop ();
@@ -410,7 +410,7 @@ void ArduinoIoTCloudTCP::handleMessage(int length)
410
410
411
411
if ((_shadowTopicIn == topic) && (_state == State::RequestLastValues))
412
412
{
413
- DBG_VERBOSE ( F ( " ArduinoIoTCloudTCP::%s [%d] last values received" ) , __FUNCTION__, millis ());
413
+ DEBUG_VERBOSE ( " ArduinoIoTCloudTCP::%s [%d] last values received" , __FUNCTION__, millis ());
414
414
CBORDecoder::decode (_property_container, (uint8_t *)bytes, length, true );
415
415
sendPropertiesToCloud ();
416
416
execCloudEventCallback (ArduinoIoTCloudEvent::SYNC);
@@ -490,7 +490,7 @@ void ArduinoIoTCloudTCP::onOTARequest()
490
490
491
491
/* Initialize the QSPI memory for OTA handling. */
492
492
if ((ota_portenta_err = ota_portenta_qspi.begin ()) != Arduino_Portenta_OTA::Error::None) {
493
- DBG_ERROR ( F ( " Arduino_Portenta_OTA_QSPI::begin() failed with %d" ) , static_cast <int >(ota_portenta_err));
493
+ DEBUG_ERROR ( " Arduino_Portenta_OTA_QSPI::begin() failed with %d" , static_cast <int >(ota_portenta_err));
494
494
return ;
495
495
}
496
496
@@ -503,7 +503,7 @@ void ArduinoIoTCloudTCP::onOTARequest()
503
503
DBG_VERBOSE (F (" Arduino_Portenta_OTA_QSPI::decompress() returns %d" ), ota_portenta_qspi_decompress_ret_code);
504
504
if (ota_portenta_qspi_decompress_ret_code < 0 )
505
505
{
506
- DBG_ERROR ( F ( " Arduino_Portenta_OTA_QSPI::decompress() failed with %d" ) , ota_portenta_qspi_decompress_ret_code);
506
+ DEBUG_ERROR ( " Arduino_Portenta_OTA_QSPI::decompress() failed with %d" , ota_portenta_qspi_decompress_ret_code);
507
507
return ;
508
508
}
509
509
/* Set the correct update size. */
@@ -512,7 +512,7 @@ void ArduinoIoTCloudTCP::onOTARequest()
512
512
513
513
/* Schedule the firmware update. */
514
514
if ((ota_portenta_err = ota_portenta_qspi.update ()) != Arduino_Portenta_OTA::Error::None) {
515
- DBG_ERROR (F (" Arduino_Portenta_OTA_QSPI::update() failed with %d" ), static_cast <int >(ota_portenta_err));
515
+ DEBUG_ERROR (F (" Arduino_Portenta_OTA_QSPI::update() failed with %d" ), static_cast <int >(ota_portenta_err));
516
516
return ;
517
517
}
518
518
0 commit comments