Skip to content

Commit 6505195

Browse files
committed
chore: Strip Notehub topic
1 parent 6de5447 commit 6505195

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/ArduinoIoTCloudNotecard.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -503,14 +503,6 @@ void ArduinoIoTCloudNotecard::processMessage(const uint8_t *buf, size_t len)
503503
case NotecardConnectionHandler::TopicType::Thing:
504504
CBORDecoder::decode(_thing.getPropertyContainer(), buf, len);
505505
break;
506-
// Notehub Diagnostic
507-
case NotecardConnectionHandler::TopicType::Notehub:
508-
{
509-
char *diag_msg = reinterpret_cast<char *>(const_cast<uint8_t *>(buf));
510-
diag_msg[len - 1] = '\0'; // Ensure null-termination
511-
DEBUG_WARNING("Notehub diagnostic message: %s", diag_msg);
512-
}
513-
break;
514506
default:
515507
DEBUG_WARNING("Unable to decode unknown topic type: 0x%2X", notecard_connection->getTopicType());
516508
break;

0 commit comments

Comments
 (0)