first test of espmega digital output card iot
This commit is contained in:
parent
bb2991cb2d
commit
ca228f7cd0
|
@ -174,7 +174,7 @@ uint8_t DigitalOutputIoT::getType() {
|
||||||
|
|
||||||
void DigitalOutputIoT::subscribe() {
|
void DigitalOutputIoT::subscribe() {
|
||||||
Serial.println("Subscribing to digital output topics");
|
Serial.println("Subscribing to digital output topics");
|
||||||
char topic[10];
|
char topic[20];
|
||||||
Serial.println("Subscribe to all set state topics");
|
Serial.println("Subscribe to all set state topics");
|
||||||
// Subscribe to all set state topics
|
// Subscribe to all set state topics
|
||||||
for(int i = 1; i <= 16; i++) {
|
for(int i = 1; i <= 16; i++) {
|
||||||
|
|
|
@ -95,7 +95,7 @@ void ESPMegaIoT::registerCard(uint8_t card_id)
|
||||||
if (mqtt_connected)
|
if (mqtt_connected)
|
||||||
{
|
{
|
||||||
components[card_id]->subscribe();
|
components[card_id]->subscribe();
|
||||||
Serial.pritnln("Back to register card");
|
Serial.println("Back to register card");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue