From ca228f7cd058d96bea86434a0b7dfe79ed942943 Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Thu, 28 Dec 2023 15:56:05 +0700 Subject: [PATCH] first test of espmega digital output card iot --- Template Project/lib/ESPMegaPRO/DigitalOutputIoT.cpp | 2 +- Template Project/lib/ESPMegaPRO/ESPMegaIoT.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Template Project/lib/ESPMegaPRO/DigitalOutputIoT.cpp b/Template Project/lib/ESPMegaPRO/DigitalOutputIoT.cpp index 568f928..90574d0 100644 --- a/Template Project/lib/ESPMegaPRO/DigitalOutputIoT.cpp +++ b/Template Project/lib/ESPMegaPRO/DigitalOutputIoT.cpp @@ -174,7 +174,7 @@ uint8_t DigitalOutputIoT::getType() { void DigitalOutputIoT::subscribe() { Serial.println("Subscribing to digital output topics"); - char topic[10]; + char topic[20]; Serial.println("Subscribe to all set state topics"); // Subscribe to all set state topics for(int i = 1; i <= 16; i++) { diff --git a/Template Project/lib/ESPMegaPRO/ESPMegaIoT.cpp b/Template Project/lib/ESPMegaPRO/ESPMegaIoT.cpp index 4a77bff..ebc5eb9 100644 --- a/Template Project/lib/ESPMegaPRO/ESPMegaIoT.cpp +++ b/Template Project/lib/ESPMegaPRO/ESPMegaIoT.cpp @@ -95,7 +95,7 @@ void ESPMegaIoT::registerCard(uint8_t card_id) if (mqtt_connected) { components[card_id]->subscribe(); - Serial.pritnln("Back to register card"); + Serial.println("Back to register card"); } break; default: