first test of espmega digital output card iot

This commit is contained in:
Siwat Sirichai 2023-12-28 15:56:05 +07:00
parent bb2991cb2d
commit ca228f7cd0
2 changed files with 2 additions and 2 deletions

View File

@ -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++) {

View File

@ -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: